Skip to content

Commit

Permalink
triedb/pathdb: print out all trie owner and hash information (ethereu…
Browse files Browse the repository at this point in the history
…m#30200)

This pull request explicitly prints out the full hash for debugging
purpose.
  • Loading branch information
rjl493456442 authored Jul 24, 2024
1 parent 766ce23 commit 4ad88e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion triedb/pathdb/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (r *reader) Node(owner common.Hash, path []byte, hash common.Hash) ([]byte,
if len(blob) > 0 {
blobHex = hexutil.Encode(blob)
}
log.Error("Unexpected trie node", "location", loc.loc, "owner", owner, "path", path, "expect", hash, "got", got, "blob", blobHex)
log.Error("Unexpected trie node", "location", loc.loc, "owner", owner.Hex(), "path", path, "expect", hash.Hex(), "got", got.Hex(), "blob", blobHex)
return nil, fmt.Errorf("unexpected node: (%x %v), %x!=%x, %s, blob: %s", owner, path, hash, got, loc.string(), blobHex)
}
return blob, nil
Expand Down

0 comments on commit 4ad88e9

Please sign in to comment.