From 49e72a828d368bc36aff11b8787d349d73293052 Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Thu, 13 Nov 2025 14:49:46 +0800 Subject: [PATCH] Simplify error handling in history inspection Remove explicit error for no history available. --- triedb/pathdb/history_inspect.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/triedb/pathdb/history_inspect.go b/triedb/pathdb/history_inspect.go index 2eb6374beb..a839a184ca 100644 --- a/triedb/pathdb/history_inspect.go +++ b/triedb/pathdb/history_inspect.go @@ -143,10 +143,6 @@ func historyRange(freezer ethdb.AncientReader) (uint64, uint64, error) { if err != nil { return 0, 0, err } - // If there is no history available, return an explicit error. - if head == tail { - return 0, 0, fmt.Errorf("no history available") - } last := head fh, err := readStateHistory(freezer, first)