From f86b4ab08667ac2d6c957f5e11fac44c627b30ff Mon Sep 17 00:00:00 2001 From: healthykim Date: Mon, 29 Jun 2026 20:23:56 +0200 Subject: [PATCH] core/rawdb: restore error message --- core/rawdb/freezer_table.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/rawdb/freezer_table.go b/core/rawdb/freezer_table.go index bca505925f..d18b75c2f7 100644 --- a/core/rawdb/freezer_table.go +++ b/core/rawdb/freezer_table.go @@ -620,6 +620,7 @@ func (t *freezerTable) truncateHead(items uint64) error { // at the head, so we have to align the table down to the new head. return t.resetTo(items) } + return errors.New("truncation below tail") } // We need to truncate, save the old size for metrics tracking