diff --git a/core/state/adapter.go b/core/state/adapter.go index 2b24ba16c..9b299eb6b 100644 --- a/core/state/adapter.go +++ b/core/state/adapter.go @@ -81,6 +81,7 @@ type StateDbInterface interface { SetPrehashedCode(addr common.Address, hash common.Hash, code []byte) GetSubstatePostAlloc() substate.SubstateAlloc + EndBlock(number uint64) } type StateDB struct { @@ -101,7 +102,7 @@ type StateDB struct { } func (s *StateDB) Copy() *StateDB { - return &StateDB{ s.StateDbInterface.Copy(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + return &StateDB{s.StateDbInterface.Copy(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } func (s *StateDB) Commit(deleteEmptyObjects bool) (common.Hash, error) { @@ -134,5 +135,5 @@ func NewWithSnapLayers(root common.Hash, db Database, snaps *snapshot.Tree, laye } func NewWrapper(inner StateDbInterface) *StateDB { - return &StateDB{ inner, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } + return &StateDB{inner, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} } diff --git a/core/state/statedb.go b/core/state/statedb.go index 548fcc513..61b651275 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -1129,6 +1129,10 @@ func (s *LegacyStateDB) GetSubstatePostAlloc() substate.SubstateAlloc { return s.SubstatePostAlloc } +func (s *LegacyStateDB) EndBlock(number uint64) { + // not used by LegacyStateDB +} + func (s *LegacyStateDB) GetAccountReads() time.Duration { return s.AccountReads }