Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is used to provide execution data blobs over the network via a blob service.
func NewProvider ¶
func NewProvider( logger zerolog.Logger, metrics module.ExecutionDataProviderMetrics, serializer execution_data.Serializer, blobService network.BlobService, storage tracker.Storage, opts ...ProviderOption, ) *Provider
func (*Provider) Provide ¶
func (p *Provider) Provide(ctx context.Context, blockHeight uint64, executionData *execution_data.BlockExecutionData) (flow.Identifier, error)
Provide adds the block execution data for a newly executed (generally not sealed or finalized) block to the blob store for distribution using Bitswap. It computes and returns the root CID of the execution data blob tree. This function returns once the root CID has been computed, and all blobs are successfully stored in the Bitswap Blobstore.
type ProviderOption ¶
type ProviderOption func(*Provider)
func WithBlobSizeLimit ¶
func WithBlobSizeLimit(size int) ProviderOption
Click to show internal directories.
Click to hide internal directories.