Skip to content

Commit

Permalink
Register the Altair topics in the valid topics list
Browse files Browse the repository at this point in the history
  • Loading branch information
zah committed Sep 22, 2021
1 parent b566d46 commit 9b41bb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion beacon_chain/nimbus_beacon_node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9b41bb6

Please sign in to comment.