disable sync committee subnets in simulation mode (#2897)

* disable sync committee subnets in simulation mode

* also gate getSyncCommitteeContributionAndProofTopic()
This commit is contained in:
tersec 2021-09-24 14:43:53 +00:00 committed by GitHub
parent aaaae89445
commit 6f391691d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -431,13 +431,15 @@ proc init*(T: type BeaconNode,
getProposerSlashingsTopic(network.forkDigests.altair),
getVoluntaryExitsTopic(network.forkDigests.altair),
getAggregateAndProofsTopic(network.forkDigests.altair),
getSyncCommitteeContributionAndProofTopic(network.forkDigests.altair)
]
if not config.verifyFinalization:
topics &= 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.altair, SyncCommitteeIndex(subnet_id))
if not config.verifyFinalization:
for subnet_id in 0'u64 ..< SYNC_COMMITTEE_SUBNET_COUNT:
topics &= getSyncCommitteeTopic(network.forkDigests.altair, SyncCommitteeIndex(subnet_id))
topics)
if node.config.inProcessValidators: