diff --git a/trie/stacktrie.go b/trie/stacktrie.go index 33fa990077c86055fb533f5ce6e42312788bfe5b..ffccbbf4ace450e132b0d54def5b66ee6f0a0176 100644 --- a/trie/stacktrie.go +++ b/trie/stacktrie.go @@ -113,7 +113,7 @@ func (st *StackTrie) Update(key, value []byte) { func (st *StackTrie) Reset() { st.db = nil st.key = st.key[:0] - st.val = st.val[:0] + st.val = nil for i := range st.children { st.children[i] = nil }