mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
fix trie delete bug
This commit is contained in:
parent
8f0db69762
commit
fc863b90a1
1 changed files with 3 additions and 0 deletions
|
|
@ -373,6 +373,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue