From 105f29dfbea94e85eabf8307d632e923739e62ba Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 18 Oct 2023 07:48:45 +0300 Subject: [PATCH] Reduce max blocks batch. --- .../mooncrawl/moonworm_crawler/event_crawler.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/event_crawler.py b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/event_crawler.py index a2c5f741..73f14f1b 100644 --- a/crawlers/mooncrawl/mooncrawl/moonworm_crawler/event_crawler.py +++ b/crawlers/mooncrawl/mooncrawl/moonworm_crawler/event_crawler.py @@ -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(