always

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package always will always attest and propose immediately.

Index

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 WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor

func WithMonitor(monitor metrics.Service) Parameter

WithMonitor sets the monitor for the module.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is the multi instance service.

func New

func New(ctx context.Context, params ...Parameter) (*Service, error)

New creates a new multi instance service.

func (*Service) OnAttestationFailure

func (*Service) OnAttestationFailure(_ context.Context, _ *attester.Duty)

OnAttestationFailure flags that an attempt to attest has failed.

func (*Service) OnProposalFailure

func (*Service) OnProposalFailure(_ context.Context, _ *beaconblockproposer.Duty)

OnProposalFailure flags that an attempt to propose has failed.

func (*Service) ShouldAttest

func (*Service) ShouldAttest(_ context.Context, _ *attester.Duty) bool

ShouldAttest returns true if this Vouch instance should attest.

func (*Service) ShouldPropose

func (*Service) ShouldPropose(_ context.Context, _ *beaconblockproposer.Duty) bool

ShouldPropose returns true if this Vouch instance should propose.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL