Skip to content

Commit

Permalink
Merge pull request #663 from bancorprotocol/fix-get-logs-iterative
Browse files Browse the repository at this point in the history
fix: get logs iterative
  • Loading branch information
zavelevsky authored May 22, 2024
2 parents e2955cf + ce16ee7 commit c5e0205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastlane_bot/events/event_gatherer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def _get_logs_for_topics(self, from_block: int, to_block: int, topics: Lis

async def _get_logs_iterative(self, from_block: int, to_block: int, topics: List[str], chunk_size: int) -> list:
block_numbers = list(range(from_block, to_block + 1, chunk_size)) + [to_block + 1]
log_lists = await asyncio.gather([
log_lists = await asyncio.gather(*[
self._w3.eth.get_logs(filter_params={
"fromBlock": r[0],
"toBlock": r[1],
Expand Down

0 comments on commit c5e0205

Please sign in to comment.