Skip to content

Commit 4ad88e9

Browse files
authored
triedb/pathdb: print out all trie owner and hash information (#30200)
This pull request explicitly prints out the full hash for debugging purpose.
1 parent 766ce23 commit 4ad88e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

triedb/pathdb/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (r *reader) Node(owner common.Hash, path []byte, hash common.Hash) ([]byte,
7878
if len(blob) > 0 {
7979
blobHex = hexutil.Encode(blob)
8080
}
81-
log.Error("Unexpected trie node", "location", loc.loc, "owner", owner, "path", path, "expect", hash, "got", got, "blob", blobHex)
81+
log.Error("Unexpected trie node", "location", loc.loc, "owner", owner.Hex(), "path", path, "expect", hash.Hex(), "got", got.Hex(), "blob", blobHex)
8282
return nil, fmt.Errorf("unexpected node: (%x %v), %x!=%x, %s, blob: %s", owner, path, hash, got, loc.string(), blobHex)
8383
}
8484
return blob, nil

0 commit comments

Comments
 (0)