deadline

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 30 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 WithBidGap

func WithBidGap(bidGap time.Duration) Parameter

WithBidGap sets the gap between fetching builder bids.

func WithChainTime

func WithChainTime(service chaintime.Service) Parameter

WithChainTime sets the chaintime service.

func WithDeadline

func WithDeadline(deadline time.Duration) Parameter

WithDeadline sets the deadline for fetching builder bids.

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.

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,
	builderConfigs map[phase0.BLSPubKey]*blockrelay.BuilderConfig,
) (
	*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