Skip to content

Commit 6f2cbb7

Browse files
authored
triedb/pathdb: allow single-element history ranges (#33329)
1 parent cd3f9b2 commit 6f2cbb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

triedb/pathdb/history_inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func sanitizeRange(start, end uint64, freezer ethdb.AncientReader) (uint64, uint
5555
last = end
5656
}
5757
// Make sure the range is valid
58-
if first >= last {
58+
if first > last {
5959
return 0, 0, fmt.Errorf("range is invalid, first: %d, last: %d", first, last)
6060
}
6161
return first, last, nil

0 commit comments

Comments
 (0)