Skip to content

Commit

Permalink
fix an issue on marking deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
noel2004 committed Apr 12, 2023
1 parent e649e1b commit 8973c8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/tracers/api_blocktrace.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ func (api *API) getTxResult(env *traceEnv, state *state.StateDB, index int, bloc
env.sMu.Lock()
m[keyStr] = wrappedProof
if zktrieTracer.Available() {
if isDelete {
zktrieTracer.MarkDeletion(key)
}
env.zkTrieTracer[addrStr].Merge(zktrieTracer)
}
env.sMu.Unlock()
Expand Down

0 comments on commit 8973c8e

Please sign in to comment.