blockfetcher

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeadBlock      = "head"
	FinalizedBlock = "finalized"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpFetcher

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

func NewHttp

func NewHttp(httpClient eth2client.Service, fetchInterval time.Duration, latestBlockRetryInterval time.Duration, logger *zap.Logger) (*HttpFetcher, error)

func (*HttpFetcher) Fetch

func (f *HttpFetcher) Fetch(ctx context.Context, requestedSlot uint64) (out *pbbstream.Block, skip bool, err error)

func (*HttpFetcher) IsBlockAvailable

func (f *HttpFetcher) IsBlockAvailable(requestedSlot uint64) bool

Jump to

Keyboard shortcuts

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