Skip to content

Commit

Permalink
Merge pull request #11 from vocdoni/fix/incNLeafs
Browse files Browse the repository at this point in the history
Fix: Use GetNLeafsWithTx in incNLeafs
  • Loading branch information
arnaucube authored Aug 31, 2021
2 parents 4836f19 + baa1d7a commit de5914f
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 de5914f

Please sign in to comment.