Search in sources :

Example 1 with ProposerSlashingGossipManager

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

the class GossipForkSubscriptionsPhase0 method addGossipManagers.

protected void addGossipManagers(final ForkInfo forkInfo) {
    AttestationSubnetSubscriptions attestationSubnetSubscriptions = new AttestationSubnetSubscriptions(spec, asyncRunner, discoveryNetwork, gossipEncoding, recentChainData, attestationProcessor, forkInfo, getMessageMaxSize());
    blockGossipManager = new BlockGossipManager(recentChainData, spec, asyncRunner, discoveryNetwork, gossipEncoding, forkInfo, blockProcessor, getMessageMaxSize());
    addGossipManager(blockGossipManager);
    attestationGossipManager = new AttestationGossipManager(metricsSystem, attestationSubnetSubscriptions);
    addGossipManager(attestationGossipManager);
    aggregateGossipManager = new AggregateGossipManager(spec, recentChainData, asyncRunner, discoveryNetwork, gossipEncoding, forkInfo, aggregateProcessor, getMessageMaxSize());
    addGossipManager(aggregateGossipManager);
    voluntaryExitGossipManager = new VoluntaryExitGossipManager(recentChainData, asyncRunner, discoveryNetwork, gossipEncoding, forkInfo, voluntaryExitProcessor, getMessageMaxSize());
    addGossipManager(voluntaryExitGossipManager);
    proposerSlashingGossipManager = new ProposerSlashingGossipManager(recentChainData, asyncRunner, discoveryNetwork, gossipEncoding, forkInfo, proposerSlashingProcessor, getMessageMaxSize());
    addGossipManager(proposerSlashingGossipManager);
    attesterSlashingGossipManager = new AttesterSlashingGossipManager(spec, recentChainData, asyncRunner, discoveryNetwork, gossipEncoding, forkInfo, attesterSlashingProcessor, getMessageMaxSize());
    addGossipManager(attesterSlashingGossipManager);
}
Also used : BlockGossipManager(tech.pegasys.teku.networking.eth2.gossip.BlockGossipManager) AttestationSubnetSubscriptions(tech.pegasys.teku.networking.eth2.gossip.subnets.AttestationSubnetSubscriptions) VoluntaryExitGossipManager(tech.pegasys.teku.networking.eth2.gossip.VoluntaryExitGossipManager) AttestationGossipManager(tech.pegasys.teku.networking.eth2.gossip.AttestationGossipManager) AttesterSlashingGossipManager(tech.pegasys.teku.networking.eth2.gossip.AttesterSlashingGossipManager) AggregateGossipManager(tech.pegasys.teku.networking.eth2.gossip.AggregateGossipManager) ProposerSlashingGossipManager(tech.pegasys.teku.networking.eth2.gossip.ProposerSlashingGossipManager)

Aggregations

AggregateGossipManager (tech.pegasys.teku.networking.eth2.gossip.AggregateGossipManager)1 AttestationGossipManager (tech.pegasys.teku.networking.eth2.gossip.AttestationGossipManager)1 AttesterSlashingGossipManager (tech.pegasys.teku.networking.eth2.gossip.AttesterSlashingGossipManager)1 BlockGossipManager (tech.pegasys.teku.networking.eth2.gossip.BlockGossipManager)1 ProposerSlashingGossipManager (tech.pegasys.teku.networking.eth2.gossip.ProposerSlashingGossipManager)1 VoluntaryExitGossipManager (tech.pegasys.teku.networking.eth2.gossip.VoluntaryExitGossipManager)1 AttestationSubnetSubscriptions (tech.pegasys.teku.networking.eth2.gossip.subnets.AttestationSubnetSubscriptions)1