Skip to content

Commit

Permalink
fix: optimize logs
Browse files Browse the repository at this point in the history
  • Loading branch information
VM committed Nov 21, 2024
1 parent 9a1c032 commit d74fd83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion triedb/pathdb/journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ func (db *Database) loadDiskLayer(r *rlp.Stream, journalTypeForReader JournalTyp
if db.config.TrieNodeBufferType == NodeBufferList && !db.useBase {
recoveredRoot, recoveredStateID, _ := nb.getLatestStatus()
if recoveredRoot != root && recoveredStateID != id {
log.Error("Recovered state root and state id are different from recording ones")
log.Error("Recovered state root and state id are different from recording ones",
"recovered_root", recoveredRoot, "root", root, "recovered_state_id", recoveredStateID, "id", id)
return nil, errors.New("Unmatched root and state id with recovered")
}

Expand Down

0 comments on commit d74fd83

Please sign in to comment.