Documentation ¶
Overview ¶
package deadline is a strategy that obtains builder bids from multiple relays repeatedly up to the supplied deadline into a slot.
Index ¶
- type Parameter
- func WithBidGap(bidGap time.Duration) Parameter
- func WithChainTime(service chaintime.Service) Parameter
- func WithDeadline(deadline time.Duration) Parameter
- func WithDomainProvider(provider consensusclient.DomainProvider) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.Service) Parameter
- func WithReleaseVersion(version string) Parameter
- func WithSpecProvider(provider consensusclient.SpecProvider) Parameter
- type Service
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 ¶
WithBidGap sets the gap between fetching builder bids.
func WithChainTime ¶
WithChainTime sets the chaintime service.
func WithDeadline ¶
WithDeadline sets the deadline for fetching builder bids.
func WithDomainProvider ¶
func WithDomainProvider(provider consensusclient.DomainProvider) Parameter
WithDomainProvider sets the signature domain provider.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
WithMonitor sets the monitor for the service.
func WithReleaseVersion ¶
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 (*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.