Browse Source

Fix: Use GetNLeafsWithTx in incNLeafs

master
Eduard S 3 years ago
parent
commit
baa1d7af48
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 { func (t *Tree) incNLeafs(wTx db.WriteTx, nLeafs int) error {
oldNLeafs, err := t.GetNLeafs()
oldNLeafs, err := t.GetNLeafsWithTx(wTx)
if err != nil { if err != nil {
return err return err
} }

Loading…
Cancel
Save