Register the Altair topics in the valid topics list

This commit is contained in:
Zahary Karadjov 2021-09-22 16:28:34 +03:00
parent b566d4657f
commit 9b41bb64da
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 6 additions and 1 deletions

View File

@ -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: