Merge pull request #11 from vocdoni/fix/incNLeafs

Fix: Use GetNLeafsWithTx in incNLeafs
This commit is contained in:
arnau
2021-08-31 16:15:31 +02:00
committed by GitHub

View File

@@ -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
}