disable sync committee subnets in simulation mode (#2897)
* disable sync committee subnets in simulation mode * also gate getSyncCommitteeContributionAndProofTopic()
This commit is contained in:
parent
aaaae89445
commit
6f391691d9
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue