mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
Update history_inspect.go
This commit is contained in:
parent
00e0f2b3b1
commit
9cb3931d75
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue