subscribe to all subnets in deneb message handlers

This commit is contained in:
Agnish Ghosh 2024-08-28 19:49:12 +05:30
parent 07d1a26e59
commit 6796b19883
1 changed files with 4 additions and 5 deletions

View File

@ -1160,11 +1160,10 @@ proc addDenebMessageHandlers(
debugEcho cs
for i in 0'u64 ..< targetSubnets:
if i in custody_subnets.get:
let topic = getDataColumnSidecarTopic(forkDigest, i)
debugEcho "Topic"
debugEcho topic
node.network.subscribe(topic, basicParams)
let topic = getDataColumnSidecarTopic(forkDigest, i)
debugEcho "Topic"
debugEcho topic
node.network.subscribe(topic, basicParams)
if node.config.subscribeAllSubnets:
node.network.loadCscnetsMetadata(DATA_COLUMN_SIDECAR_SUBNET_COUNT.uint8)