Skip to content

Commit

Permalink
merkledb -- rename nit (#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
danlaine committed Nov 7, 2023
1 parent cdcfb5b commit 1faec38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/merkledb/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -840,9 +840,9 @@ func addPathInfo(
if existingChild, ok := n.children[index]; ok {
compressedKey = existingChild.compressedKey
}
childPath := key.Extend(ToToken(index, t.tokenSize), compressedKey)
if (shouldInsertLeftChildren && childPath.Less(insertChildrenLessThan.Value())) ||
(shouldInsertRightChildren && childPath.Greater(insertChildrenGreaterThan.Value())) {
childKey := key.Extend(ToToken(index, t.tokenSize), compressedKey)
if (shouldInsertLeftChildren && childKey.Less(insertChildrenLessThan.Value())) ||
(shouldInsertRightChildren && childKey.Greater(insertChildrenGreaterThan.Value())) {
// We didn't set the other values on the child entry, but it doesn't matter.
// We only need the IDs to be correct so that the calculated hash is correct.
n.setChildEntry(
Expand Down

0 comments on commit 1faec38

Please sign in to comment.