best

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

package deadline is a strategy that obtains builder bids from multiple relays repeatedly up to the supplied deadline into a slot.

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 WithChainTime

func WithChainTime(service chaintime.Service) Parameter

WithChainTime sets the chaintime service.

func WithDomainProvider

func WithDomainProvider(provider consensusclient.DomainProvider) Parameter

WithDomainProvider sets the signature domain provider.

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 service.

func WithReleaseVersion

func WithReleaseVersion(version string) Parameter

WithReleaseVersion sets the release version for Vouch.

func WithSpecProvider

func WithSpecProvider(provider consensusclient.SpecProvider) Parameter

WithSpecProvider sets the spec provider.

func WithTimeout

func WithTimeout(timeout time.Duration) Parameter

WithTimeout sets the timeout for requests.

type Service

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

Service is the provider for builder bids.

func New

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

New creates a new builder bid strategy.

func (*Service) BuilderBid

func (s *Service) BuilderBid(ctx context.Context,
	slot phase0.Slot,
	parentHash phase0.Hash32,
	pubkey phase0.BLSPubKey,
	proposerConfig *beaconblockproposer.ProposerConfig,
	excludedBuilders []phase0.BLSPubKey,
) (
	*blockauctioneer.Results,
	error,
)

BuilderBid provides the best builder bid from a number of relays.

Jump to

Keyboard shortcuts

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