mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
triedb/pathdb: allow single-element history ranges (#33329)
This commit is contained in:
parent
cd3f9b24e9
commit
6f2cbb7a27
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