mirror of
https://github.com/arnaucube/go-merkletree-iden3.git
synced 2026-02-07 03:26:46 +01:00
Return ErrReachedMaxLevel in Get when appropriate
This commit is contained in:
@@ -451,7 +451,7 @@ func (mt *MerkleTree) Get(k *big.Int) (*big.Int, *big.Int, []*Hash, error) {
|
||||
}
|
||||
}
|
||||
|
||||
return nil, nil, nil, ErrKeyNotFound
|
||||
return nil, nil, nil, ErrReachedMaxLevel
|
||||
}
|
||||
|
||||
// Update updates the value of a specified key in the MerkleTree, and updates
|
||||
|
||||
Reference in New Issue
Block a user