core/state/snapshot: avoid copybytes for stacktrie

This commit is contained in:
Martin Holst Swende
2021-04-16 14:58:23 +02:00
parent 4f3ba6742f
commit 09d44e9925
2 changed files with 3 additions and 3 deletions

View File

@ -830,8 +830,8 @@ func TestCommitSequenceStackTrie(t *testing.T) {
val = make([]byte, 1+prng.Intn(1024))
}
prng.Read(val)
trie.TryUpdate(key, common.CopyBytes(val))
stTrie.TryUpdate(key, common.CopyBytes(val))
trie.TryUpdate(key, val)
stTrie.TryUpdate(key, val)
}
// Flush trie -> database
root, _ := trie.Commit(nil)