mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-31 16:58:31 +00:00
fix: initial subscription condition
This commit is contained in:
parent
2805ffe242
commit
46c72d8cbe
@ -2041,7 +2041,13 @@ proc installMessageValidators(node: BeaconNode) =
|
|||||||
|
|
||||||
# data_column_sidecar_{subnet_id}
|
# 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.
|
closureScope: # Needed for inner `proc`; don't lift it out of loop.
|
||||||
let subnet_id = it
|
let subnet_id = it
|
||||||
node.network.addValidator(
|
node.network.addValidator(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user