6 #ifndef KAGOME_PARACHAIN_AVAILABILITY_STORE_STORE_HPP 7 #define KAGOME_PARACHAIN_AVAILABILITY_STORE_STORE_HPP 34 virtual std::optional<ErasureChunk>
getChunk(
37 virtual std::optional<ParachainBlock>
getPov(
51 #endif // KAGOME_PARACHAIN_AVAILABILITY_STORE_STORE_HPP virtual ~AvailabilityStore()=default
virtual bool hasData(const CandidateHash &candidate_hash)=0
Has PersistedValidationData.
network::ValidatorIndex ValidatorIndex
primitives::BlockHash CandidateHash
virtual std::optional< ErasureChunk > getChunk(const CandidateHash &candidate_hash, ValidatorIndex index)=0
Get ErasureChunk.
virtual void putChunk(const CandidateHash &candidate_hash, const ErasureChunk &chunk)=0
Store ErasureChunk.
virtual bool hasChunk(const CandidateHash &candidate_hash, ValidatorIndex index)=0
Has ErasureChunk.
virtual bool hasPov(const CandidateHash &candidate_hash)=0
Has PoV.
virtual std::optional< ParachainBlock > getPov(const CandidateHash &candidate_hash)=0
Get PoV.
virtual void putData(const CandidateHash &candidate_hash, const PersistedValidationData &data)=0
Store PersistedValidationData.
virtual void putPov(const CandidateHash &candidate_hash, const ParachainBlock &pov)=0
Store PoV.
Stores ErasureChunk, PoV and PersistedValidationData.
A chunk of erasure-encoded block data.