mirror of
https://github.com/vocdoni/arbo.git
synced 2026-01-10 06:17:58 -05:00
debug traces
This commit is contained in:
@@ -3,6 +3,8 @@ package arbo
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"log"
|
||||
"math"
|
||||
"math/big"
|
||||
"slices"
|
||||
)
|
||||
@@ -69,6 +71,7 @@ func (t *Tree) AddBigInt(k *big.Int, v ...*big.Int) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
log.Println("AddBigInt", k, BytesToBigInt(bv))
|
||||
// add it to the tree
|
||||
if err := t.Add(bk, bv); err != nil {
|
||||
return fmt.Errorf("raw key cannot be added: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user