Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions core/state/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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) {
Expand Down Expand Up @@ -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}
}
4 changes: 4 additions & 0 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down