Fix: Use GetNLeafsWithTx in incNLeafs

This commit is contained in:
Eduard S
2021-08-31 14:40:35 +02:00
parent 4836f19755
commit baa1d7af48

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
}