Search in sources :

Example 1 with SyncCommitteeMessageValidator

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

Aggregations

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