From ab20c390190e2b3fb1a10a4c3adda30332ae33e3 Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Wed, 18 Jan 2023 23:20:12 +0000 Subject: [PATCH] Fix eth_getLogs (#839) Co-authored-by: Alex Sharp --- kv/bitmapdb/bitmapdb.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/kv/bitmapdb/bitmapdb.go b/kv/bitmapdb/bitmapdb.go index 40328d9ee..6f451ad96 100644 --- a/kv/bitmapdb/bitmapdb.go +++ b/kv/bitmapdb/bitmapdb.go @@ -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 } }