mirror of
https://github.com/arnaucube/arbo.git
synced 2026-01-15 01:41:28 +01:00
Fix level when going down & in computeHashes
Fix level when going down & in computeHashes, this affected the methods Get, GenProof & AddBatch.
This commit is contained in:
4
vt.go
4
vt.go
@@ -318,11 +318,11 @@ func (t *vt) computeHashes() ([][2][]byte, error) {
|
||||
wg.Add(nCPU)
|
||||
for i := 0; i < nCPU; i++ {
|
||||
go func(cpu int) {
|
||||
bucketVT := newVT(t.params.maxLevels-l, t.params.hashFunction)
|
||||
bucketVT := newVT(t.params.maxLevels, t.params.hashFunction)
|
||||
bucketVT.params.dbg = newDbgStats()
|
||||
bucketVT.root = nodesAtL[cpu]
|
||||
|
||||
bucketPairs[cpu], err = bucketVT.root.computeHashes(l,
|
||||
bucketPairs[cpu], err = bucketVT.root.computeHashes(l-1,
|
||||
t.params.maxLevels, bucketVT.params, bucketPairs[cpu])
|
||||
if err != nil {
|
||||
errs[cpu] = err
|
||||
|
||||
Reference in New Issue
Block a user