This commit is contained in:
gary rong 2017-01-17 11:58:34 +00:00 committed by GitHub
commit 120ce8a5f3

View file

@ -406,6 +406,9 @@ func (t *Trie) delete(n node, prefix, key []byte) (bool, node, error) {
case nil:
return false, nil, nil
case valueNode:
return true, nil, nil
case hashNode:
// We've hit a part of the trie that isn't loaded yet. Load
// the node and delete from it. This leaves all child nodes on