Update history_inspect.go

This commit is contained in:
Forostovec 2025-11-10 15:33:16 +02:00 committed by GitHub
parent 00e0f2b3b1
commit 9cb3931d75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,7 @@ func sanitizeRange(start, end uint64, freezer ethdb.AncientReader) (uint64, uint
last = end last = end
} }
// Make sure the range is valid // 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 0, 0, fmt.Errorf("range is invalid, first: %d, last: %d", first, last)
} }
return first, last, nil return first, last, nil