From b9d6da12433cf04e46cb6b2f08505ecaab3f5ddd Mon Sep 17 00:00:00 2001 From: Jan Kalina Date: Thu, 18 May 2023 20:11:31 +0200 Subject: [PATCH] Add BeginBlock into StateDB interface --- core/state/adapter.go | 1 + core/state/statedb.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/core/state/adapter.go b/core/state/adapter.go index 9b299eb6b..f4f97cf66 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 + BeginBlock(number uint64) EndBlock(number uint64) } diff --git a/core/state/statedb.go b/core/state/statedb.go index 61b651275..87b54db60 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) BeginBlock(number uint64) { + // not used by LegacyStateDB +} + func (s *LegacyStateDB) EndBlock(number uint64) { // not used by LegacyStateDB }