mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +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 {
|
if err != nil {
|
||||||
return 0, 0, err
|
return 0, 0, err
|
||||||
}
|
}
|
||||||
last := head - 1
|
last := head
|
||||||
if end != 0 && end < last {
|
if end != 0 && end < last {
|
||||||
last = end
|
last = end
|
||||||
}
|
}
|
||||||
|
|
@ -143,7 +143,7 @@ func historyRange(freezer ethdb.AncientReader) (uint64, uint64, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, 0, err
|
return 0, 0, err
|
||||||
}
|
}
|
||||||
last := head - 1
|
last := head
|
||||||
|
|
||||||
fh, err := readStateHistory(freezer, first)
|
fh, err := readStateHistory(freezer, first)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue