mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-10 22:13:47 +00:00
fix(tracing): fix error handling in fillBlockTrace (#890)
* fix(tracing): fix error handling in `fillBlockTrace` * chore: auto version bump [bot] * chore: auto version bump [bot] --------- Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
This commit is contained in:
parent
c3371e2b07
commit
55f70cc6e8
2 changed files with 2 additions and 2 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 = 5 // Minor version component of the current release
|
VersionMinor = 5 // Minor version component of the current release
|
||||||
VersionPatch = 8 // Patch version component of the current release
|
VersionPatch = 9 // 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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -554,7 +554,7 @@ func (env *TraceEnv) fillBlockTrace(block *types.Block) (*types.BlockTrace, erro
|
||||||
if _, existed := env.StorageProofs[addr.String()][slot.String()]; !existed {
|
if _, existed := env.StorageProofs[addr.String()][slot.String()]; !existed {
|
||||||
if trie, err := statedb.GetStorageTrieForProof(addr); err != nil {
|
if trie, err := statedb.GetStorageTrieForProof(addr); err != nil {
|
||||||
log.Error("Storage proof for intrinstic address not available", "error", err, "address", addr)
|
log.Error("Storage proof for intrinstic address not available", "error", err, "address", addr)
|
||||||
} else if proof, _ := statedb.GetSecureTrieProof(trie, slot); err != nil {
|
} else if proof, err := statedb.GetSecureTrieProof(trie, slot); err != nil {
|
||||||
log.Error("Get storage proof for intrinstic address failed", "error", err, "address", addr, "slot", slot)
|
log.Error("Get storage proof for intrinstic address failed", "error", err, "address", addr, "slot", slot)
|
||||||
} else {
|
} else {
|
||||||
env.StorageProofs[addr.String()][slot.String()] = types.WrapProof(proof)
|
env.StorageProofs[addr.String()][slot.String()] = types.WrapProof(proof)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue