Browse Source

Return ErrReachedMaxLevel in Get when appropriate

feature/update
Eduard S 4 years ago
parent
commit
5a00ae9be5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      merkletree.go

+ 1
- 1
merkletree.go

@ -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 // Update updates the value of a specified key in the MerkleTree, and updates

Loading…
Cancel
Save