mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 14:54:12 +00:00
set poll interval
This commit is contained in:
parent
6d837bcdaa
commit
9a4a6066c8
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user