mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
* PeerDAS: Implement DAS * Fix Terence's comment. * Fix Terence comment. * Fix Terence's comment. * Fix James' comment. * Fix James' comment. * Rename some variable/files with blobs. * Fix James' comment. * Fix James' comment. * Fix James' comment.
20 lines
759 B
Go
20 lines
759 B
Go
package das
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/OffchainLabs/prysm/v6/consensus-types/blocks"
|
|
"github.com/OffchainLabs/prysm/v6/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.ROSidecar) error
|
|
}
|