mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +00:00
fix(traces): deletion proof apply wrong storage value from structLogger (#838)
* fix issue caused by unmatching storage value * lint * chore: auto version bump [bot] --------- Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com> Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
This commit is contained in:
parent
f2efa44e11
commit
4e3bf2f58e
2 changed files with 4 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ import (
|
||||||
const (
|
const (
|
||||||
VersionMajor = 5 // Major version component of the current release
|
VersionMajor = 5 // Major version component of the current release
|
||||||
VersionMinor = 4 // Minor version component of the current release
|
VersionMinor = 4 // Minor version component of the current release
|
||||||
VersionPatch = 4 // Patch version component of the current release
|
VersionPatch = 5 // Patch version component of the current release
|
||||||
VersionMeta = "mainnet" // Version metadata to append to the version string
|
VersionMeta = "mainnet" // Version metadata to append to the version string
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -428,10 +428,11 @@ func (env *TraceEnv) getTxResult(state *state.StateDB, index int, block *types.B
|
||||||
zktrieTracer := state.NewProofTracer(trie)
|
zktrieTracer := state.NewProofTracer(trie)
|
||||||
env.sMu.Unlock()
|
env.sMu.Unlock()
|
||||||
|
|
||||||
for key, values := range keys {
|
for key := range keys {
|
||||||
addrStr := addr.String()
|
addrStr := addr.String()
|
||||||
keyStr := key.String()
|
keyStr := key.String()
|
||||||
isDelete := bytes.Equal(values.Bytes(), common.Hash{}.Bytes())
|
value := state.GetState(addr, key)
|
||||||
|
isDelete := bytes.Equal(value.Bytes(), common.Hash{}.Bytes())
|
||||||
|
|
||||||
txm := txStorageTrace.StorageProofs[addrStr]
|
txm := txStorageTrace.StorageProofs[addrStr]
|
||||||
env.sMu.Lock()
|
env.sMu.Lock()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue