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