Search in sources :

Example 1 with ValidatorBasedStableSubnetSubscriber

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

the class BeaconChainController method initActiveValidatorTracker.

protected void initActiveValidatorTracker() {
    LOG.debug("BeaconChainController.initActiveValidatorTracker");
    final StableSubnetSubscriber stableSubnetSubscriber = beaconConfig.p2pConfig().isSubscribeAllSubnetsEnabled() ? AllSubnetsSubscriber.create(attestationTopicSubscriber) : new ValidatorBasedStableSubnetSubscriber(attestationTopicSubscriber, new Random(), spec);
    this.activeValidatorTracker = new ActiveValidatorTracker(stableSubnetSubscriber, spec);
}
Also used : StableSubnetSubscriber(tech.pegasys.teku.networking.eth2.gossip.subnets.StableSubnetSubscriber) ValidatorBasedStableSubnetSubscriber(tech.pegasys.teku.networking.eth2.gossip.subnets.ValidatorBasedStableSubnetSubscriber) Random(java.util.Random) ValidatorBasedStableSubnetSubscriber(tech.pegasys.teku.networking.eth2.gossip.subnets.ValidatorBasedStableSubnetSubscriber) ActiveValidatorTracker(tech.pegasys.teku.validator.coordinator.ActiveValidatorTracker)

Aggregations

Random (java.util.Random)1 StableSubnetSubscriber (tech.pegasys.teku.networking.eth2.gossip.subnets.StableSubnetSubscriber)1 ValidatorBasedStableSubnetSubscriber (tech.pegasys.teku.networking.eth2.gossip.subnets.ValidatorBasedStableSubnetSubscriber)1 ActiveValidatorTracker (tech.pegasys.teku.validator.coordinator.ActiveValidatorTracker)1