mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
fix: correctly initialize ZkTrieTracer for ccc (#440)
* fix issue for zktrieTracer not inited * bump version --------- Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
This commit is contained in:
parent
53963e6171
commit
6b20ce624f
2 changed files with 7 additions and 5 deletions
|
|
@ -337,10 +337,12 @@ func (env *TraceEnv) getTxResult(state *state.StateDB, index int, block *types.B
|
|||
if !existed {
|
||||
m = make(map[string][]hexutil.Bytes)
|
||||
env.StorageProofs[addrStr] = m
|
||||
if zktrieTracer.Available() {
|
||||
}
|
||||
if zktrieTracer.Available() && !env.ZkTrieTracer[addrStr].Available() {
|
||||
env.ZkTrieTracer[addrStr] = state.NewProofTracer(trie)
|
||||
}
|
||||
} else if proof, existed := m[keyStr]; existed {
|
||||
|
||||
if proof, existed := m[keyStr]; existed {
|
||||
txm[keyStr] = proof
|
||||
// still need to touch tracer for deletion
|
||||
if isDelete && zktrieTracer.Available() {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import (
|
|||
const (
|
||||
VersionMajor = 4 // Major version component of the current release
|
||||
VersionMinor = 3 // Minor version component of the current release
|
||||
VersionPatch = 19 // Patch version component of the current release
|
||||
VersionPatch = 20 // Patch version component of the current release
|
||||
VersionMeta = "sepolia" // Version metadata to append to the version string
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue