Browse Source

Merge pull request #11 from vocdoni/fix/incNLeafs

Fix: Use GetNLeafsWithTx in incNLeafs
master
arnau 2 years ago
committed by GitHub
parent
commit
de5914f453
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tree.go

+ 1
- 1
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
}

Loading…
Cancel
Save