mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie: unset the edge valuenode as nilValuenode
This commit is contained in:
parent
200f567e69
commit
e18e7775b3
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ func unset(root node, rest []byte, removeLeft bool) {
|
|||
case *shortNode:
|
||||
rn.flags = nodeFlag{dirty: true}
|
||||
if _, ok := rn.Val.(valueNode); ok {
|
||||
rn.Val = nil
|
||||
rn.Val = nilValueNode
|
||||
return
|
||||
}
|
||||
unset(rn.Val, rest[len(rn.Key):], removeLeft)
|
||||
|
|
|
|||
Loading…
Reference in a new issue