From 3abbfdec604dd30e1a93ba938d98b4da30ac7778 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Sat, 17 Jan 2026 20:47:02 +0800 Subject: [PATCH] triedb/pathdb: fix --- triedb/pathdb/history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/triedb/pathdb/history.go b/triedb/pathdb/history.go index 9e68045925..9efaa3ab24 100644 --- a/triedb/pathdb/history.go +++ b/triedb/pathdb/history.go @@ -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) }