Search in sources :

Example 1 with SignedContributionAndProofGossipManager

use of tech.pegasys.teku.networking.eth2.gossip.SignedContributionAndProofGossipManager in project teku by ConsenSys.

the class GossipForkSubscriptionsAltair method addGossipManagers.

@Override
protected void addGossipManagers(final ForkInfo forkInfo) {
    super.addGossipManagers(forkInfo);
    final SchemaDefinitionsAltair schemaDefinitions = SchemaDefinitionsAltair.required(spec.atEpoch(getActivationEpoch()).getSchemaDefinitions());
    syncCommitteeContributionGossipManager = new SignedContributionAndProofGossipManager(recentChainData, schemaDefinitions, asyncRunner, discoveryNetwork, gossipEncoding, forkInfo, signedContributionAndProofOperationProcessor, getMessageMaxSize());
    addGossipManager(syncCommitteeContributionGossipManager);
    final SyncCommitteeSubnetSubscriptions syncCommitteeSubnetSubscriptions = new SyncCommitteeSubnetSubscriptions(spec, recentChainData, discoveryNetwork, gossipEncoding, schemaDefinitions, asyncRunner, syncCommitteeMessageOperationProcessor, forkInfo, getMessageMaxSize());
    syncCommitteeMessageGossipManager = new SyncCommitteeMessageGossipManager(metricsSystem, spec, new SyncCommitteeStateUtils(spec, recentChainData), syncCommitteeSubnetSubscriptions);
    addGossipManager(syncCommitteeMessageGossipManager);
}
Also used : SyncCommitteeStateUtils(tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeStateUtils) SchemaDefinitionsAltair(tech.pegasys.teku.spec.schemas.SchemaDefinitionsAltair) SignedContributionAndProofGossipManager(tech.pegasys.teku.networking.eth2.gossip.SignedContributionAndProofGossipManager) SyncCommitteeSubnetSubscriptions(tech.pegasys.teku.networking.eth2.gossip.subnets.SyncCommitteeSubnetSubscriptions) SyncCommitteeMessageGossipManager(tech.pegasys.teku.networking.eth2.gossip.SyncCommitteeMessageGossipManager)

Aggregations

SignedContributionAndProofGossipManager (tech.pegasys.teku.networking.eth2.gossip.SignedContributionAndProofGossipManager)1 SyncCommitteeMessageGossipManager (tech.pegasys.teku.networking.eth2.gossip.SyncCommitteeMessageGossipManager)1 SyncCommitteeSubnetSubscriptions (tech.pegasys.teku.networking.eth2.gossip.subnets.SyncCommitteeSubnetSubscriptions)1 SchemaDefinitionsAltair (tech.pegasys.teku.spec.schemas.SchemaDefinitionsAltair)1 SyncCommitteeStateUtils (tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeStateUtils)1