Skip to content

Commit eb8f325

Browse files
authored
triedb/pathdb: fix ID assignment in history inspection (#33103)
1 parent 48d708a commit eb8f325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

triedb/pathdb/history_inspect.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func sanitizeRange(start, end uint64, freezer ethdb.AncientReader) (uint64, uint
5050
if err != nil {
5151
return 0, 0, err
5252
}
53-
last := head - 1
53+
last := head
5454
if end != 0 && end < last {
5555
last = end
5656
}
@@ -143,7 +143,7 @@ func historyRange(freezer ethdb.AncientReader) (uint64, uint64, error) {
143143
if err != nil {
144144
return 0, 0, err
145145
}
146-
last := head - 1
146+
last := head
147147

148148
fh, err := readStateHistory(freezer, first)
149149
if err != nil {

0 commit comments

Comments
 (0)