diff --git a/core/state/caching_versa_db.go b/core/state/caching_versa_db.go index 855925df29..2ce2475cfb 100644 --- a/core/state/caching_versa_db.go +++ b/core/state/caching_versa_db.go @@ -126,7 +126,7 @@ func (cv *cachingVersaDB) OpenTrie(root common.Hash) (Trie, error) { cv.accTree = tree cv.root = root - log.Info("open trie", "state info", cv.versionDB.ParseStateHandler(cv.state)) + log.Info("open trie", "state info", cv.versionDB.ParseTreeHandler(tree.handler)) return tree, nil } @@ -325,8 +325,7 @@ func (vt *VersaTree) Hash() common.Hash { hash, err := vt.db.CalcRootHash(vt.handler) if err != nil { // TODO:: debug code, will be change to log error - log.Info("calc tree root hash", "tree handler info", vt.db.ParseTreeHandler(vt.handler)) - panic(fmt.Sprintf("failed to cacl versa tree hash, handler: %d, error: %s", vt.handler, err.Error())) + log.Crit("calc tree root hash", "tree handler info", vt.db.ParseTreeHandler(vt.handler), "error", err.Error()) } return hash }