subscribe to only those gossips that return via get_custody_column_subnet
This commit is contained in:
parent
c2962b65c9
commit
237dc3adfb
|
@ -2047,9 +2047,13 @@ proc installMessageValidators(node: BeaconNode) =
|
||||||
else:
|
else:
|
||||||
CUSTODY_REQUIREMENT.uint64
|
CUSTODY_REQUIREMENT.uint64
|
||||||
|
|
||||||
for it in 0'u64 ..< subnetCount:
|
let dc_subnets = get_custody_column_subnet(node.network.nodeId, subnetCount)
|
||||||
|
for it in 0'u64 ..< DATA_COLUMN_SIDECAR_SUBNET_COUNT:
|
||||||
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
|
||||||
|
if subnet_id notin dc_subnets.get:
|
||||||
|
discard
|
||||||
|
else:
|
||||||
node.network.addValidator(
|
node.network.addValidator(
|
||||||
getDataColumnSidecarTopic(digest, subnet_id), proc (
|
getDataColumnSidecarTopic(digest, subnet_id), proc (
|
||||||
dataColumnSidecar: DataColumnSidecar
|
dataColumnSidecar: DataColumnSidecar
|
||||||
|
|
Loading…
Reference in New Issue