From 9b41bb64da3d019aa6edea50ae111019096a3205 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 22 Sep 2021 16:28:34 +0300 Subject: [PATCH] Register the Altair topics in the valid topics list --- beacon_chain/nimbus_beacon_node.nim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index 3a64a6462..7b2f9a579 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -425,16 +425,21 @@ proc init*(T: type BeaconNode, getProposerSlashingsTopic(network.forkDigests.phase0), getVoluntaryExitsTopic(network.forkDigests.phase0), getAggregateAndProofsTopic(network.forkDigests.phase0), + getSyncCommitteeContributionAndProofTopic(network.forkDigests.phase0), getBeaconBlocksTopic(dag.forkDigests.altair), getAttesterSlashingsTopic(network.forkDigests.altair), getProposerSlashingsTopic(network.forkDigests.altair), getVoluntaryExitsTopic(network.forkDigests.altair), - getAggregateAndProofsTopic(network.forkDigests.altair) + getAggregateAndProofsTopic(network.forkDigests.altair), + getSyncCommitteeContributionAndProofTopic(network.forkDigests.altair) ] for subnet_id in 0'u64 ..< ATTESTATION_SUBNET_COUNT: topics &= getAttestationTopic(network.forkDigests.phase0, SubnetId(subnet_id)) topics &= getAttestationTopic(network.forkDigests.altair, SubnetId(subnet_id)) + for subnet_id in 0'u64 ..< SYNC_COMMITTEE_SUBNET_COUNT: + topics &= getSyncCommitteeTopic(network.forkDigests.phase0, SyncCommitteeIndex(subnet_id)) + topics &= getSyncCommitteeTopic(network.forkDigests.altair, SyncCommitteeIndex(subnet_id)) topics) if node.config.inProcessValidators: