Skip to content

Commit

Permalink
core/vm: clean up evm clearly when get it from pool (#1914)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBSC authored Oct 11, 2023
1 parent 35d85e2 commit 73cfed0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func NewEVM(blockCtx BlockContext, txCtx TxContext, statedb StateDB, chainConfig
evm.Config = config
evm.chainConfig = chainConfig
evm.chainRules = chainConfig.Rules(blockCtx.BlockNumber, blockCtx.Random != nil, blockCtx.Time)
evm.abort.Store(false)
evm.callGasTemp = 0
evm.depth = 0

Expand Down

0 comments on commit 73cfed0

Please sign in to comment.