mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 12:31:21 +00:00
Fix eth_getLogs (#839)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
This commit is contained in:
parent
39694bc9d5
commit
ab20c39019
@ -202,7 +202,6 @@ func Get(db kv.Tx, bucket string, key []byte, from, to uint32) (*roaring.Bitmap,
|
||||
}
|
||||
chunks = append(chunks, bm)
|
||||
if binary.BigEndian.Uint32(k[len(k)-4:]) >= to {
|
||||
bm.RemoveRange(uint64(to), uint64(bm.Maximum()))
|
||||
break
|
||||
}
|
||||
}
|
||||
@ -360,7 +359,6 @@ func Get64(db kv.Tx, bucket string, key []byte, from, to uint64) (*roaring64.Bit
|
||||
}
|
||||
chunks = append(chunks, bm)
|
||||
if binary.BigEndian.Uint64(k[len(k)-8:]) >= to {
|
||||
bm.RemoveRange(to, bm.Maximum())
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user