Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Jan 15, 2024
1 parent 27a5f1d commit 4a2f80a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trie/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (t *Trie) Prove(key []byte, fromLevel uint, proofDb ethdb.KeyValueWriter) e
// The trie doesn't contain the key.
tn = nil
log.Info("bilibili loop", "marker", hexutils.BytesToHex(marker), "index", i, "type", "SHORT NODE", "note", "key not found")
} else {
} else { // len(key) == len(n.Key) && bytes.Equal(n.Key, key[:len(n.Key)])
tn = n.Val
prefix = append(prefix, n.Key...)
key = key[len(n.Key):]
Expand Down Expand Up @@ -84,6 +84,7 @@ func (t *Trie) Prove(key []byte, fromLevel uint, proofDb ethdb.KeyValueWriter) e
}
i += 1
}
log.Info("bilibili finish", "len(key)", len(key), "tn", tn, "tn==nil", tn == nil)
hasher := newHasher(false)
defer returnHasherToPool(hasher)

Expand Down

0 comments on commit 4a2f80a

Please sign in to comment.