Removed logging from stateTrie update function.

This commit is contained in:
philip-morlier 2023-09-11 12:22:59 -07:00
parent 95319e5252
commit f3c906a3a8

View File

@ -21,7 +21,6 @@ import (
"bytes" "bytes"
"encoding/gob" "encoding/gob"
"errors" "errors"
"fmt"
"io" "io"
"sync" "sync"
@ -213,9 +212,7 @@ func (st *StackTrie) TryUpdate(key, value []byte) error {
} }
func (st *StackTrie) Update(key, value []byte) { func (st *StackTrie) Update(key, value []byte) {
if err := st.TryUpdate(key, value); err != nil { st.TryUpdate(key, value)
fmt.Println("Unhandled trie error in StackTrie.Update:", err)
}
} }
func (st *StackTrie) Reset() { func (st *StackTrie) Reset() {