From 381f6eca1bb346c65e1de0a488625f7a4db3d983 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 27 Apr 2022 09:38:36 +0800 Subject: [PATCH] trie: address comment --- trie/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/trie/utils.go b/trie/utils.go index 0895946e28ddb..fe7f6e52f9eb0 100644 --- a/trie/utils.go +++ b/trie/utils.go @@ -51,6 +51,7 @@ func newTracer() *tracer { } // onRead tracks the newly loaded trie node and caches the rlp-encoded blob internally. +// Don't change the value outside of function since it's not deep-copied. func (t *tracer) onRead(key []byte, val []byte) { // Tracer isn't used right now, remove this check later. if t == nil {