Documentation ¶
Index ¶
- type Parameter
- func WithAccountsRefresher(refresher accountmanager.Refresher) Parameter
- func WithAttestationAggregationDelay(delay time.Duration) Parameter
- func WithAttestationAggregator(aggregator attestationaggregator.Service) Parameter
- func WithAttester(attester attester.Service) Parameter
- func WithAttesterDutiesProvider(provider eth2client.AttesterDutiesProvider) Parameter
- func WithBeaconBlockHeadersProvider(provider eth2client.BeaconBlockHeadersProvider) Parameter
- func WithBeaconBlockProposer(proposer beaconblockproposer.Service) Parameter
- func WithBeaconCommitteeSubscriber(subscriber beaconcommitteesubscriber.Service) Parameter
- func WithBlockToSlotSetter(setter cache.BlockRootToSlotSetter) Parameter
- func WithChainTimeService(service chaintime.Service) Parameter
- func WithEventsProvider(provider eth2client.EventsProvider) Parameter
- func WithFastTrackAttestations(fastTrack bool) Parameter
- func WithFastTrackGrace(grace time.Duration) Parameter
- func WithFastTrackSyncCommittees(fastTrack bool) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMaxAttestationDelay(delay time.Duration) Parameter
- func WithMaxProposalDelay(delay time.Duration) Parameter
- func WithMaxSyncCommitteeMessageDelay(delay time.Duration) Parameter
- func WithMonitor(monitor metrics.ControllerMonitor) Parameter
- func WithProposalsPreparer(provider proposalpreparer.Service) Parameter
- func WithProposerDutiesProvider(provider eth2client.ProposerDutiesProvider) Parameter
- func WithScheduler(scheduler scheduler.Service) Parameter
- func WithSignedBeaconBlockProvider(provider eth2client.SignedBeaconBlockProvider) Parameter
- func WithSpecProvider(provider eth2client.SpecProvider) Parameter
- func WithSyncCommitteeAggregationDelay(delay time.Duration) Parameter
- func WithSyncCommitteeAggregator(aggregator synccommitteeaggregator.Service) Parameter
- func WithSyncCommitteeDutiesProvider(provider eth2client.SyncCommitteeDutiesProvider) Parameter
- func WithSyncCommitteeMessenger(messenger synccommitteemessenger.Service) Parameter
- func WithSyncCommitteeSubscriber(subscriber synccommitteesubscriber.Service) Parameter
- func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter
- func WithWaitedForGenesis(waitedForGenesis bool) Parameter
- type Service
- func (s *Service) AttestAndScheduleAggregate(ctx context.Context, data interface{})
- func (s *Service) HandleBlockEvent(event *apiv1.Event)
- func (s *Service) HandleHeadEvent(event *apiv1.Event)
- func (s *Service) HasPendingAttestations(_ context.Context, slot phase0.Slot) bool
- func (s *Service) VerifySyncCommitteeMessages(ctx context.Context, data *apiv1.HeadEvent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithAccountsRefresher ¶ added in v1.0.0
func WithAccountsRefresher(refresher accountmanager.Refresher) Parameter
WithAccountsRefresher sets the account refresher.
func WithAttestationAggregationDelay ¶ added in v1.3.0
WithAttestationAggregationDelay sets the delay before aggregating attestations.
func WithAttestationAggregator ¶
func WithAttestationAggregator(aggregator attestationaggregator.Service) Parameter
WithAttestationAggregator sets the attestation aggregator.
func WithAttester ¶
WithAttester sets the attester.
func WithAttesterDutiesProvider ¶
func WithAttesterDutiesProvider(provider eth2client.AttesterDutiesProvider) Parameter
WithAttesterDutiesProvider sets the attester duties provider.
func WithBeaconBlockHeadersProvider ¶ added in v1.3.1
func WithBeaconBlockHeadersProvider(provider eth2client.BeaconBlockHeadersProvider) Parameter
WithBeaconBlockHeadersProvider sets the beacon block headers provider.
func WithBeaconBlockProposer ¶
func WithBeaconBlockProposer(proposer beaconblockproposer.Service) Parameter
WithBeaconBlockProposer sets the beacon block propser.
func WithBeaconCommitteeSubscriber ¶
func WithBeaconCommitteeSubscriber(subscriber beaconcommitteesubscriber.Service) Parameter
WithBeaconCommitteeSubscriber sets the beacon committee subscriber.
func WithBlockToSlotSetter ¶ added in v1.7.0
func WithBlockToSlotSetter(setter cache.BlockRootToSlotSetter) Parameter
WithBlockToSlotSetter sets the setter for the block to slot cache.
func WithChainTimeService ¶
WithChainTimeService sets the chain time service.
func WithEventsProvider ¶ added in v0.9.0
func WithEventsProvider(provider eth2client.EventsProvider) Parameter
WithEventsProvider sets the events provider.
func WithFastTrackAttestations ¶ added in v1.9.0
WithFastTrackAttestations sets the fast track flag, attesting as soon as possible.
func WithFastTrackGrace ¶ added in v1.9.0
WithFastTrackGrace sets the grace period before initiating fast track operations.
func WithFastTrackSyncCommittees ¶ added in v1.9.0
WithFastTrackSyncCommittees sets the fast track flag, generating sync committee messages as soon as possible.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMaxAttestationDelay ¶ added in v1.2.0
WithMaxAttestationDelay sets the maximum delay before attesting.
func WithMaxProposalDelay ¶ added in v1.3.1
WithMaxProposalDelay sets the maximum delay before proposing.
func WithMaxSyncCommitteeMessageDelay ¶ added in v1.2.0
WithMaxSyncCommitteeMessageDelay sets the maximum delay before generating sync committee messages.
func WithMonitor ¶
func WithMonitor(monitor metrics.ControllerMonitor) Parameter
WithMonitor sets the monitor for the module.
func WithProposalsPreparer ¶ added in v1.5.0
func WithProposalsPreparer(provider proposalpreparer.Service) Parameter
WithProposalsPreparer sets the proposals preparer.
func WithProposerDutiesProvider ¶
func WithProposerDutiesProvider(provider eth2client.ProposerDutiesProvider) Parameter
WithProposerDutiesProvider sets the proposer duties provider.
func WithScheduler ¶
WithScheduler sets the scheduler.
func WithSignedBeaconBlockProvider ¶ added in v1.3.1
func WithSignedBeaconBlockProvider(provider eth2client.SignedBeaconBlockProvider) Parameter
WithSignedBeaconBlockProvider sets the signed beacon block provider.
func WithSpecProvider ¶ added in v1.2.0
func WithSpecProvider(provider eth2client.SpecProvider) Parameter
WithSpecProvider sets the spec provider.
func WithSyncCommitteeAggregationDelay ¶ added in v1.3.0
WithSyncCommitteeAggregationDelay sets the delay before aggregating sync committee messages.
func WithSyncCommitteeAggregator ¶ added in v1.2.0
func WithSyncCommitteeAggregator(aggregator synccommitteeaggregator.Service) Parameter
WithSyncCommitteeAggregator sets the sync committee aggregator.
func WithSyncCommitteeDutiesProvider ¶ added in v1.2.0
func WithSyncCommitteeDutiesProvider(provider eth2client.SyncCommitteeDutiesProvider) Parameter
WithSyncCommitteeDutiesProvider sets the sync committee duties provider.
func WithSyncCommitteeMessenger ¶ added in v1.2.0
func WithSyncCommitteeMessenger(messenger synccommitteemessenger.Service) Parameter
WithSyncCommitteeMessenger sets the sync committee messenger.
func WithSyncCommitteeSubscriber ¶ added in v1.2.0
func WithSyncCommitteeSubscriber(subscriber synccommitteesubscriber.Service) Parameter
WithSyncCommitteeSubscriber sets the sync committee subscriber.
func WithValidatingAccountsProvider ¶
func WithValidatingAccountsProvider(provider accountmanager.ValidatingAccountsProvider) Parameter
WithValidatingAccountsProvider sets the validating accounts provider.
func WithWaitedForGenesis ¶ added in v1.7.0
WithWaitedForGenesis is true if we waited for genesis.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the co-ordination system for vouch. It runs purely against clock events, setting up jobs for the validator's processes of block proposal, attestation creation and attestation aggregation.
func (*Service) AttestAndScheduleAggregate ¶
AttestAndScheduleAggregate attests, then schedules aggregation jobs as required.
func (*Service) HandleBlockEvent ¶ added in v1.7.0
HandleBlockEvent handles the "block" events from the beacon node.
func (*Service) HandleHeadEvent ¶ added in v0.9.0
HandleHeadEvent handles the "head" events from the beacon node.
func (*Service) HasPendingAttestations ¶ added in v1.5.0
HasPendingAttestations returns true if there are pending attestations for the given slot.