triedb/pathdb: fix

This commit is contained in:
Gary Rong 2026-01-17 20:47:02 +08:00
parent 6d0f68cb9a
commit 3abbfdec60

View file

@ -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)
}