use of tech.pegasys.teku.networking.eth2.gossip.SyncCommitteeMessageGossipManager 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);
}
Aggregations