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);
}
Aggregations