Skip to content

Commit 0ef867b

Browse files
triedb/pathdb: fix swapped want/got args in journal-root mismatch error (ethereum#35067)
1 parent 61342e9 commit 0ef867b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

triedb/pathdb/journal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (db *Database) loadJournal(diskRoot common.Hash) (layer, error) {
9292
// The journal is not matched with persistent state, discard them.
9393
// It can happen that geth crashes without persisting the journal.
9494
if !bytes.Equal(root.Bytes(), diskRoot.Bytes()) {
95-
return nil, fmt.Errorf("%w want %x got %x", errUnmatchedJournal, root, diskRoot)
95+
return nil, fmt.Errorf("%w want %x got %x", errUnmatchedJournal, diskRoot, root)
9696
}
9797
// Load the disk layer from the journal
9898
base, err := db.loadDiskLayer(r)

0 commit comments

Comments
 (0)