Skip to content

Commit

Permalink
Merge pull request #938 from moonstream-to/reduce-events-batch
Browse files Browse the repository at this point in the history
Reduce max blocks batch.
  • Loading branch information
Andrei-Dolgolev authored Oct 18, 2023
2 parents 3bc6070 + 105f29d commit 6949a4d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions crawlers/mooncrawl/mooncrawl/moonworm_crawler/event_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,13 @@ def _autoscale_crawl_events(
all_events = []
for job in jobs:
raw_events, batch_size = moonworm_autoscale_crawl_events(
web3,
job.event_abi,
from_block,
to_block,
batch_size,
job.contracts[0],
web3=web3,
event_abi=job.event_abi,
from_block=from_block,
to_block=to_block,
batch_size=batch_size,
contract_address=job.contracts[0],
max_blocks_batch=3000,
)
for raw_event in raw_events:
raw_event["blockTimestamp"] = get_block_timestamp(
Expand Down

0 comments on commit 6949a4d

Please sign in to comment.