Skip to content

Commit

Permalink
Fix: Use GetNLeafsWithTx in incNLeafs
Browse files Browse the repository at this point in the history
  • Loading branch information
ed255 committed Aug 31, 2021
1 parent 4836f19 commit baa1d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ func CheckProof(hashFunc HashFunction, k, v, root, packedSiblings []byte) (bool,
}

func (t *Tree) incNLeafs(wTx db.WriteTx, nLeafs int) error {
oldNLeafs, err := t.GetNLeafs()
oldNLeafs, err := t.GetNLeafsWithTx(wTx)
if err != nil {
return err
}
Expand Down

0 comments on commit baa1d7a

Please sign in to comment.