From e87871e2cbb8f8557e528594416517a08e73346f Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Fri, 23 Aug 2024 15:56:36 +0530 Subject: [PATCH] save work --- beacon_chain/nimbus_beacon_node.nim | 8 +++++++- beacon_chain/sync/request_manager.nim | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index de976aa71..f01864094 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -2041,7 +2041,13 @@ proc installMessageValidators(node: BeaconNode) = # data_column_sidecar_{subnet_id} # - for it in 0'u64 ..< DATA_COLUMN_SIDECAR_SUBNET_COUNT: + let subnetCount = + if node.config.subscribeAllSubnets: + DATA_COLUMN_SIDECAR_SUBNET_COUNT.uint64 + else: + CUSTODY_REQUIREMENT.uint64 + + for it in 0'u64 ..< subnetCount: closureScope: # Needed for inner `proc`; don't lift it out of loop. let subnet_id = it node.network.addValidator( diff --git a/beacon_chain/sync/request_manager.nim b/beacon_chain/sync/request_manager.nim index 90a260ae0..c0ad1abcd 100644 --- a/beacon_chain/sync/request_manager.nim +++ b/beacon_chain/sync/request_manager.nim @@ -38,7 +38,7 @@ 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* = 5 * 1_000_000_000 POLL_INTERVAL = 1.seconds