diff --git a/core/state/statedb.go b/core/state/statedb.go index 5302263d363c..fefca7b09289 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -338,6 +338,9 @@ func (s *StateDB) GetKeccakCodeHash(addr common.Address) common.Hash { if stateObject == nil { return common.Hash{} } + if s.witness != nil { + s.witness.AddCode(stateObject.Code(s.db)) + } return common.BytesToHash(stateObject.KeccakCodeHash()) } diff --git a/params/version.go b/params/version.go index b647f521ac57..31a4817aced3 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 5 // Major version component of the current release VersionMinor = 10 // Minor version component of the current release - VersionPatch = 0 // Patch version component of the current release + VersionPatch = 1 // Patch version component of the current release VersionMeta = "mainnet" // Version metadata to append to the version string )