From f3c906a3a8d882667d6e2092e1ef58331cb13e52 Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Mon, 11 Sep 2023 12:22:59 -0700 Subject: [PATCH] Removed logging from stateTrie update function. --- restricted/hasher/statetrie.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/restricted/hasher/statetrie.go b/restricted/hasher/statetrie.go index 53e1428..f013e37 100644 --- a/restricted/hasher/statetrie.go +++ b/restricted/hasher/statetrie.go @@ -21,7 +21,6 @@ import ( "bytes" "encoding/gob" "errors" - "fmt" "io" "sync" @@ -213,9 +212,7 @@ func (st *StackTrie) TryUpdate(key, value []byte) error { } func (st *StackTrie) Update(key, value []byte) { - if err := st.TryUpdate(key, value); err != nil { - fmt.Println("Unhandled trie error in StackTrie.Update:", err) - } + st.TryUpdate(key, value) } func (st *StackTrie) Reset() {