Search in sources :

Example 1 with SyncCommitteeStateUtils

use of tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeStateUtils in project teku by ConsenSys.

the class BeaconChainController method initSyncCommitteePools.

protected void initSyncCommitteePools() {
    final SyncCommitteeStateUtils syncCommitteeStateUtils = new SyncCommitteeStateUtils(spec, recentChainData);
    syncCommitteeContributionPool = new SyncCommitteeContributionPool(spec, new SignedContributionAndProofValidator(spec, recentChainData, syncCommitteeStateUtils, timeProvider, signatureVerificationService));
    syncCommitteeMessagePool = new SyncCommitteeMessagePool(spec, new SyncCommitteeMessageValidator(spec, recentChainData, syncCommitteeStateUtils, signatureVerificationService, timeProvider));
    eventChannels.subscribe(SlotEventsChannel.class, syncCommitteeContributionPool).subscribe(SlotEventsChannel.class, syncCommitteeMessagePool);
}
Also used : SyncCommitteeStateUtils(tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeStateUtils) SyncCommitteeMessagePool(tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeMessagePool) SyncCommitteeContributionPool(tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeContributionPool) SlotEventsChannel(tech.pegasys.teku.ethereum.events.SlotEventsChannel) SyncCommitteeMessageValidator(tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeMessageValidator) SignedContributionAndProofValidator(tech.pegasys.teku.statetransition.synccommittee.SignedContributionAndProofValidator)

Example 2 with SyncCommitteeStateUtils

use of tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeStateUtils 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

SyncCommitteeStateUtils (tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeStateUtils)2 SlotEventsChannel (tech.pegasys.teku.ethereum.events.SlotEventsChannel)1 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 SignedContributionAndProofValidator (tech.pegasys.teku.statetransition.synccommittee.SignedContributionAndProofValidator)1 SyncCommitteeContributionPool (tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeContributionPool)1 SyncCommitteeMessagePool (tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeMessagePool)1 SyncCommitteeMessageValidator (tech.pegasys.teku.statetransition.synccommittee.SyncCommitteeMessageValidator)1