subscribe to only those gossips that return via get_custody_column_subnet
This commit is contained in:
parent
c2962b65c9
commit
237dc3adfb
|
@ -2047,16 +2047,20 @@ 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
|
||||||
node.network.addValidator(
|
if subnet_id notin dc_subnets.get:
|
||||||
getDataColumnSidecarTopic(digest, subnet_id), proc (
|
discard
|
||||||
dataColumnSidecar: DataColumnSidecar
|
else:
|
||||||
): ValidationResult =
|
node.network.addValidator(
|
||||||
toValidationResult(
|
getDataColumnSidecarTopic(digest, subnet_id), proc (
|
||||||
node.processor[].processDataColumnSidecar(
|
dataColumnSidecar: DataColumnSidecar
|
||||||
MsgSource.gossip, dataColumnSidecar, subnet_id)))
|
): ValidationResult =
|
||||||
|
toValidationResult(
|
||||||
|
node.processor[].processDataColumnSidecar(
|
||||||
|
MsgSource.gossip, dataColumnSidecar, subnet_id)))
|
||||||
|
|
||||||
node.installLightClientMessageValidators()
|
node.installLightClientMessageValidators()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue