mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-04 22:18:40 +00:00
triedb/pathdb: fix swapped want/got args in journal-root mismatch error (#35067)
This commit is contained in:
parent
61342e9c01
commit
0ef867b292
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ func (db *Database) loadJournal(diskRoot common.Hash) (layer, error) {
|
||||||
// The journal is not matched with persistent state, discard them.
|
// The journal is not matched with persistent state, discard them.
|
||||||
// It can happen that geth crashes without persisting the journal.
|
// It can happen that geth crashes without persisting the journal.
|
||||||
if !bytes.Equal(root.Bytes(), diskRoot.Bytes()) {
|
if !bytes.Equal(root.Bytes(), diskRoot.Bytes()) {
|
||||||
return nil, fmt.Errorf("%w want %x got %x", errUnmatchedJournal, root, diskRoot)
|
return nil, fmt.Errorf("%w want %x got %x", errUnmatchedJournal, diskRoot, root)
|
||||||
}
|
}
|
||||||
// Load the disk layer from the journal
|
// Load the disk layer from the journal
|
||||||
base, err := db.loadDiskLayer(r)
|
base, err := db.loadDiskLayer(r)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue