mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-21 10:28:10 +00:00
triedb/pathdb: fix ID assignment in history inspection (#33103)
This commit is contained in:
parent
48d708a194
commit
eb8f32588b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue