triedb/pathdb: fix ID assignment in history inspection (#33103)

This commit is contained in:
Forostovec 2025-11-13 08:51:41 +02:00 committed by GitHub
parent 48d708a194
commit eb8f32588b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,7 +50,7 @@ func sanitizeRange(start, end uint64, freezer ethdb.AncientReader) (uint64, uint
if err != nil {
return 0, 0, err
}
last := head - 1
last := head
if end != 0 && end < last {
last = end
}
@ -143,7 +143,7 @@ func historyRange(freezer ethdb.AncientReader) (uint64, uint64, error) {
if err != nil {
return 0, 0, err
}
last := head - 1
last := head
fh, err := readStateHistory(freezer, first)
if err != nil {