Documentation
¶
Overview ¶
Package staticdelay provides a static delay in which a Vouch instance waits to see if another instance has attested or proposed before doing so itself.
Index ¶
- type Parameter
- func WithAttestationPoolProvider(provider consensusclient.AttestationPoolProvider) Parameter
- func WithAttesterDelay(delay time.Duration) Parameter
- func WithBeaconBlockHeadersProvider(provider consensusclient.BeaconBlockHeadersProvider) Parameter
- func WithChainTime(provider chaintime.Service) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.Service) Parameter
- func WithProposerDelay(delay time.Duration) Parameter
- func WithSpecProvider(provider consensusclient.SpecProvider) Parameter
- type Service
- func (s *Service) OnAttestationFailure(ctx context.Context, duty *attester.Duty)
- func (s *Service) OnProposalFailure(_ context.Context, duty *beaconblockproposer.Duty)
- func (s *Service) ShouldAttest(ctx context.Context, duty *attester.Duty) bool
- func (s *Service) ShouldPropose(ctx context.Context, duty *beaconblockproposer.Duty) bool
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 WithAttestationPoolProvider ¶
func WithAttestationPoolProvider(provider consensusclient.AttestationPoolProvider) Parameter
WithAttestationPoolProvider sets the attestation pool provider for the module.
func WithAttesterDelay ¶
WithAttesterDelay sets the delay for the attester trigger.
func WithBeaconBlockHeadersProvider ¶
func WithBeaconBlockHeadersProvider(provider consensusclient.BeaconBlockHeadersProvider) Parameter
WithBeaconBlockHeadersProvider sets the beacon block headers provider for the module.
func WithChainTime ¶
WithChainTime sets the chaintime provider for the module.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
WithMonitor sets the monitor for the module.
func WithProposerDelay ¶
WithProposerDelay sets the delay for the proposer trigger.
func WithSpecProvider ¶
func WithSpecProvider(provider consensusclient.SpecProvider) Parameter
WithSpecProvider sets the specification provider for the module.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the multi instance service.
func (*Service) OnAttestationFailure ¶
OnAttestationFailure flags that an attempt to attest has failed.
func (*Service) OnProposalFailure ¶
func (s *Service) OnProposalFailure(_ context.Context, duty *beaconblockproposer.Duty)
OnProposalFailure flags that an attempt to propose has failed.
func (*Service) ShouldAttest ¶
ShouldAttest returns true if this Vouch instance should attest.
func (*Service) ShouldPropose ¶
ShouldPropose returns true if this Vouch instance should propose.