From baa1d7af48c75ca0f9dbab2048506686bdefac8c Mon Sep 17 00:00:00 2001 From: Eduard S Date: Tue, 31 Aug 2021 14:40:35 +0200 Subject: [PATCH] Fix: Use GetNLeafsWithTx in incNLeafs --- tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree.go b/tree.go index 1108e19..dca5749 100644 --- a/tree.go +++ b/tree.go @@ -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 }