Skip to content

Commit

Permalink
fix root hash
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Jun 8, 2024
1 parent c1024c2 commit d5ef271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/util/cmd/find-trie-root/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func searchRootHashInSegments(
Int("to", to).
Int("want-from", wantFrom).
Int("want-to", wantTo).
Msgf("searching for trie root hash %x in segments [%d,%d]", expectedHash, wantFrom, wantTo)
Msgf("searching for trie root hash %v in segments [%d,%d]", expectedHash, wantFrom, wantTo)

sr, err := prometheusWAL.NewSegmentsRangeReader(lg, prometheusWAL.SegmentRange{
Dir: w.Dir(),
Expand Down
1 change: 1 addition & 0 deletions ledger/complete/wal/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func Decode(data []byte) (operation WALOperation, rootHash ledger.RootHash, upda
switch operation {
case WALUpdate:
update, err = ledger.DecodeTrieUpdate(data[1:])
rootHash = update.RootHash
return
case WALDelete:
var rootHashBytes []byte
Expand Down

0 comments on commit d5ef271

Please sign in to comment.