mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
triedb/pathdb: fix
This commit is contained in:
parent
6d0f68cb9a
commit
3abbfdec60
1 changed files with 1 additions and 1 deletions
|
|
@ -442,7 +442,7 @@ func repairHistory(db ethdb.Database, isVerkle bool, readOnly bool, stateID uint
|
|||
if store == nil {
|
||||
return
|
||||
}
|
||||
pruned, err := truncateFromHead(store, typ, head)
|
||||
pruned, err := truncateFromHead(store, typ, nhead)
|
||||
if err != nil {
|
||||
log.Crit("Failed to truncate extra histories", "typ", typ, "err", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue