From e18e7775b3f760733808cbcc08c40c5d14cb6696 Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Fri, 24 Apr 2020 09:32:58 +0800 Subject: [PATCH] trie: unset the edge valuenode as nilValuenode --- trie/proof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/proof.go b/trie/proof.go index 9611b5a3e8..07ce8e6d84 100644 --- a/trie/proof.go +++ b/trie/proof.go @@ -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)