Skip to content

Commit

Permalink
core/rawdb: fix lint nits
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Nov 29, 2021
1 parent afce846 commit 24948ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/rawdb/accessors_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ func ReadHeaderRange(db ethdb.Reader, number uint64, count uint64) []rlp.RawValu
return rlpHeaders
}
// read remaining from ancients
max := uint64(count * 700)
data, err := db.AncientRange(freezerHeaderTable, uint64(i+1-count), count, max)
max := count * 700
data, err := db.AncientRange(freezerHeaderTable, i+1-count, count, max)
if err == nil && uint64(len(data)) == count {
// the data is on the order [h, h+1, .., n] -- reordering needed
for i := range data {
Expand Down

0 comments on commit 24948ab

Please sign in to comment.