Fix eth_getLogs (#839)

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
This commit is contained in:
ledgerwatch 2023-01-18 23:20:12 +00:00 committed by GitHub
parent 39694bc9d5
commit ab20c39019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}