service

package
v0.0.0-...-2143b8a Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyStopped = errors.New("already stopped")

Functions

This section is empty.

Types

type BlobSidecarClient

type BlobSidecarClient interface {
	// FetchSidecars fetches the sidecars for a given slot from the blob sidecar API. It returns the HTTP status code and
	// the sidecars.
	FetchSidecars(id string, format Format) (int, storage.BlobSidecars, error)
}

BlobSidecarClient is a minimal client for fetching sidecars from the blob service. This client is used instead of an existing client for two reasons. 1) Does not require any endpoints except /eth/v1/blob_sidecar, which is the only endpoint that the Blob API supports 2) Exposes implementation details, e.g. status code, as well as allowing us to specify the format

func NewBlobSidecarClient

func NewBlobSidecarClient(url string) BlobSidecarClient

NewBlobSidecarClient creates a new BlobSidecarClient that fetches sidecars from the given URL.

type CheckBlobResult

type CheckBlobResult struct {
	// ErrorFetching contains the list of slots for which the blob-api or beacon-node returned an error
	ErrorFetching []string
	// MismatchedStatus contains the list of slots for which the status code from the blob-api and beacon-node did not match
	MismatchedStatus []string
	// MismatchedData contains the list of slots for which the data from the blob-api and beacon-node did not match
	MismatchedData []string
}

CheckBlobResult contains the summary of the blob checks

type Format

type Format string
const (
	// FormatJson instructs the client to request the response in JSON format
	FormatJson Format = "application/json"
	// FormatSSZ instructs the client to request the response in SSZ format
	FormatSSZ Format = "application/octet-stream"
)

type ValidatorService

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

func (*ValidatorService) Start

func (a *ValidatorService) Start(ctx context.Context) error

Start starts the validator service. This will fetch the current range of blocks to validate and start the validation process.

func (*ValidatorService) Stop

func (a *ValidatorService) Stop(ctx context.Context) error

Stops the validator service.

func (*ValidatorService) Stopped

func (a *ValidatorService) Stopped() bool

Jump to

Keyboard shortcuts

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