From 9a4a6066c8b6c94870906c8025246c7b45b2f8ea Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Thu, 3 Oct 2024 03:07:22 +0530 Subject: [PATCH] set poll interval --- beacon_chain/sync/request_manager.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beacon_chain/sync/request_manager.nim b/beacon_chain/sync/request_manager.nim index 6cd3057ac..010a8ee58 100644 --- a/beacon_chain/sync/request_manager.nim +++ b/beacon_chain/sync/request_manager.nim @@ -38,10 +38,12 @@ const BLOB_GOSSIP_WAIT_TIME_NS* = 2 * 1_000_000_000 ## How long to wait for blobs to arrive over gossip before fetching. - DATA_COLUMN_GOSSIP_WAIT_TIME_NS* = 2 * 1_000_000_000 + DATA_COLUMN_GOSSIP_WAIT_TIME_NS* = 2.5 * 1_000_000_000 POLL_INTERVAL = 1.seconds + POLL_INTERVAL_DATA_COLUMNS = 4.seconds + type BlockVerifierFn* = proc( signedBlock: ForkedSignedBeaconBlock, @@ -564,7 +566,7 @@ proc requestManagerDataColumnLoop( rman: RequestManager) {.async: (raises: [CancelledError]).} = while true: - await sleepAsync(POLL_INTERVAL) + await sleepAsync(POLL_INTERVAL_DATA_COLUMNS) if rman.inhibit(): continue