package
5.2.0
Repository: https://github.com/prysmaticlabs/prysm.git
Documentation: pkg.go.dev

# Packages

# Functions

NewService initializes the backfill Service.
NewUpdater correctly initializes a StatusUpdater value with the required database value.
WithBatchSize configures the size of backfill batches, similar to the initial-sync block-batch-limit flag.
WithEnableBackfill toggles the entire backfill service on or off, intended to be used by a feature flag.
WithInitSyncWaiter sets a function on the service which will block until init-sync completes for the first time, or returns an error if context is canceled.
WithMinimumSlot allows the user to specify a different backfill minimum slot than the spec default of current - MIN_EPOCHS_FOR_BLOCK_REQUESTS.
WithVerifierWaiter sets the verification.InitializerWaiter for the backfill Service.
WithWorkerCount sets the number of goroutines in the batch processing pool that can concurrently make p2p requests to download data for batches.

# Variables

ErrChainBroken indicates a backfill batch can't be imported to the db because it is not known to be the ancestor of the canonical chain.

# Structs

Store provides a way to update and query the status of a backfill process that may be necessary to track when a node was initialized via checkpoint sync.

# Interfaces

BeaconDB describes the set of DB methods that the StatusUpdater type needs to function.
InitializerWaiter is an interface that is satisfied by verification.InitializerWaiter.
PeerAssigner describes a type that provides an Assign method, which can assign the best peer to service an RPC blockRequest.

# Type aliases

ServiceOption represents a functional option for the backfill service constructor.