externalvalidatorproxy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHTTPErrorResponse  = errors.New("HTTP error response")
	ErrMaxRetriesExceeded = errors.New("max retries exceeded")
)

Functions

func SendHTTPRequest

func SendHTTPRequest(ctx context.Context, client http.Client, method, url string, payload, dst any) (code int, err error)

SendHTTPRequest - prepare and send HTTP request, marshaling the payload if any, and decoding the response if dst is set

func SendHTTPRequestWithRetries

func SendHTTPRequestWithRetries(ctx context.Context, client http.Client, method, url string, payload, dst any, maxRetries int, log *logrus.Entry) (code int, err error)

SendHTTPRequestWithRetries - prepare and send HTTP request, retrying the request if within the client timeout

Types

type ExternalValidatorProxyService

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

func NewExternalValidatorProxyService

func NewExternalValidatorProxyService() *ExternalValidatorProxyService

func (*ExternalValidatorProxyService) CliCommand added in v1.0.0

func (p *ExternalValidatorProxyService) CliCommand() *cli.Command

func (*ExternalValidatorProxyService) Configure

func (p *ExternalValidatorProxyService) Configure(moduleFlags common.ModuleFlags) (err error)

func (*ExternalValidatorProxyService) ConnectCore

func (p *ExternalValidatorProxyService) ConnectCore(coreClient *coreCommon.Client, pingId string) error

func (*ExternalValidatorProxyService) GetHeader

func (p *ExternalValidatorProxyService) GetHeader(slot uint64, parentHash, pubkey string) (res []spec.VersionedSignedBuilderBid, err error)

func (*ExternalValidatorProxyService) GetPayload

func (p *ExternalValidatorProxyService) GetPayload(VersionedSignedBlindedBeaconBlock *commonTypes.VersionedSignedBlindedBeaconBlock) (versionedExecutionPayload []commonTypes.VersionedExecutionPayloadV2WithVersionName, err error)

func (*ExternalValidatorProxyService) Name

func (*ExternalValidatorProxyService) RegisterValidator

func (p *ExternalValidatorProxyService) RegisterValidator(payload []apiv1.SignedValidatorRegistration) error

func (*ExternalValidatorProxyService) Start

func (*ExternalValidatorProxyService) Status

func (*ExternalValidatorProxyService) Stop

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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