6 #ifndef KAGOME_PARACHAIN_AVAILABILITY_STORE_STORE_IMPL_HPP 7 #define KAGOME_PARACHAIN_AVAILABILITY_STORE_STORE_IMPL_HPP 11 #include <unordered_map> 24 std::optional<ParachainBlock>
getPov(
35 std::unordered_map<ValidatorIndex, ErasureChunk>
chunks;
36 std::optional<ParachainBlock>
pov;
37 std::optional<PersistedValidationData>
data;
44 #endif // KAGOME_PARACHAIN_AVAILABILITY_STORE_STORE_IMPL_HPP network::ValidatorIndex ValidatorIndex
~AvailabilityStoreImpl() override=default
std::unordered_map< ValidatorIndex, ErasureChunk > chunks
std::optional< ParachainBlock > pov
std::unordered_map< CandidateHash, PerCandidate > per_candidate_
bool hasPov(const CandidateHash &candidate_hash) override
void putChunk(const CandidateHash &candidate_hash, const ErasureChunk &chunk) override
bool hasData(const CandidateHash &candidate_hash) override
network::CandidateHash CandidateHash
void putData(const CandidateHash &candidate_hash, const PersistedValidationData &data) override
bool hasChunk(const CandidateHash &candidate_hash, ValidatorIndex index) override
std::optional< ParachainBlock > getPov(const CandidateHash &candidate_hash) override
Stores ErasureChunk, PoV and PersistedValidationData.
A chunk of erasure-encoded block data.
std::optional< PersistedValidationData > data
std::optional< ErasureChunk > getChunk(const CandidateHash &candidate_hash, ValidatorIndex index) override
void putPov(const CandidateHash &candidate_hash, const ParachainBlock &pov) override