aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-20 16:52:45 -0400
committerDeterminant <[email protected]>2020-09-20 16:52:45 -0400
commit30fae395d465eb79ee8bc122d67a58cea3ccfcf2 (patch)
treee8dfa653348550237903e349fe2d5a2cf8b05bdd /plugin/evm
parent9284f6d1193247adfaa29025934a3514a46188a3 (diff)
execute full state transfer during block validation
Diffstat (limited to 'plugin/evm')
-rw-r--r--plugin/evm/block.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/evm/block.go b/plugin/evm/block.go
index 1e1d710..556f171 100644
--- a/plugin/evm/block.go
+++ b/plugin/evm/block.go
@@ -136,7 +136,9 @@ func (b *Block) Verify() error {
if utx.SemanticVerify(vm, tx) != nil {
return errInvalidBlock
}
- if utx.EVMStateTransfer(vm, pState) != nil {
+ bc := vm.chain.BlockChain()
+ _, _, _, err = bc.Processor().Process(b.ethBlock, pState, *bc.GetVMConfig())
+ if err != nil {
return errInvalidBlock
}
}