forked from cerc-io/laconicd-deprecated
build(deps): bump github.com/ethereum/go-ethereum from 1.9.24 to 1.9.25 (#654)
* build(deps): bump github.com/ethereum/go-ethereum from 1.9.24 to 1.9.25 Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.9.24 to 1.9.25. - [Release notes](https://github.com/ethereum/go-ethereum/releases) - [Commits](https://github.com/ethereum/go-ethereum/compare/v1.9.24...v1.9.25) Signed-off-by: dependabot[bot] <support@github.com> * fixes Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
This commit is contained in:
co-authored by
Federico Kunze
parent
de0d685b51
commit
1d24ef76e5
@@ -79,25 +79,29 @@ func (st StateTransition) newEVM(
|
||||
config ChainConfig,
|
||||
extraEIPs []int,
|
||||
) *vm.EVM {
|
||||
// Create context for evm
|
||||
context := vm.Context{
|
||||
// Create contexts for evm
|
||||
|
||||
blockCtx := vm.BlockContext{
|
||||
CanTransfer: core.CanTransfer,
|
||||
Transfer: core.Transfer,
|
||||
GetHash: GetHashFn(ctx, csdb),
|
||||
Origin: st.Sender,
|
||||
Coinbase: common.Address{}, // there's no benefitiary since we're not mining
|
||||
Coinbase: common.Address{}, // there's no beneficiary since we're not mining
|
||||
BlockNumber: big.NewInt(ctx.BlockHeight()),
|
||||
Time: big.NewInt(ctx.BlockHeader().Time.Unix()),
|
||||
Difficulty: big.NewInt(0), // unused. Only required in PoW context
|
||||
GasLimit: gasLimit,
|
||||
GasPrice: gasPrice,
|
||||
}
|
||||
|
||||
txCtx := vm.TxContext{
|
||||
Origin: st.Sender,
|
||||
GasPrice: gasPrice,
|
||||
}
|
||||
|
||||
vmConfig := vm.Config{
|
||||
ExtraEips: extraEIPs,
|
||||
}
|
||||
|
||||
return vm.NewEVM(context, csdb, config.EthereumConfig(st.ChainID), vmConfig)
|
||||
return vm.NewEVM(blockCtx, txCtx, csdb, config.EthereumConfig(st.ChainID), vmConfig)
|
||||
}
|
||||
|
||||
// TransitionDb will transition the state by applying the current transaction and
|
||||
|
||||
Reference in New Issue
Block a user