Skip to content

Commit

Permalink
fix: get logs iterative
Browse files Browse the repository at this point in the history
  • Loading branch information
platonfloria committed May 22, 2024
1 parent e2955cf commit ce16ee7
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 ce16ee7

Please sign in to comment.