mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
5a66807989
* First take at updating everything to v5 * Patch gRPC gateway to use prysm v5 Fix patch * Update go ssz --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
20 lines
758 B
Go
20 lines
758 B
Go
package das
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/prysmaticlabs/prysm/v5/consensus-types/blocks"
|
|
"github.com/prysmaticlabs/prysm/v5/consensus-types/primitives"
|
|
)
|
|
|
|
// AvailabilityStore describes a component that can verify and save sidecars for a given block, and confirm previously
|
|
// verified and saved sidecars.
|
|
// Persist guarantees that the sidecar will be available to perform a DA check
|
|
// for the life of the beacon node process.
|
|
// IsDataAvailable guarantees that all blobs committed to in the block have been
|
|
// durably persisted before returning a non-error value.
|
|
type AvailabilityStore interface {
|
|
IsDataAvailable(ctx context.Context, current primitives.Slot, b blocks.ROBlock) error
|
|
Persist(current primitives.Slot, sc ...blocks.ROBlob) error
|
|
}
|