From 6f2cbb7a27ba7e62b0bdb2090755ef0d271714be Mon Sep 17 00:00:00 2001 From: Forostovec Date: Mon, 1 Dec 2025 04:19:21 +0200 Subject: [PATCH] triedb/pathdb: allow single-element history ranges (#33329) --- triedb/pathdb/history_inspect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/triedb/pathdb/history_inspect.go b/triedb/pathdb/history_inspect.go index a839a184ca..74b8bb8df2 100644 --- a/triedb/pathdb/history_inspect.go +++ b/triedb/pathdb/history_inspect.go @@ -55,7 +55,7 @@ func sanitizeRange(start, end uint64, freezer ethdb.AncientReader) (uint64, uint last = end } // Make sure the range is valid - if first >= last { + if first > last { return 0, 0, fmt.Errorf("range is invalid, first: %d, last: %d", first, last) } return first, last, nil