Skip to content

Commit 77b7f9f

Browse files
committed
core/rawdb: fix lint nits
1 parent c89118f commit 77b7f9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/rawdb/accessors_chain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ func ReadHeaderRange(db ethdb.Reader, number uint64, count uint64) []rlp.RawValu
336336
return rlpHeaders
337337
}
338338
// read remaining from ancients
339-
max := uint64(count * 700)
340-
data, err := db.AncientRange(freezerHeaderTable, uint64(i+1-count), count, max)
339+
max := count * 700
340+
data, err := db.AncientRange(freezerHeaderTable, i+1-count, count, max)
341341
if err == nil && uint64(len(data)) == count {
342342
// the data is on the order [h, h+1, .., n] -- reordering needed
343343
for i := range data {

0 commit comments

Comments
 (0)