15 return it->second.chunks.count(index) != 0;
23 return it->second.pov.has_value();
31 return it->second.data.has_value();
34 std::optional<AvailabilityStore::ErasureChunk>
41 auto it2 = it->second.chunks.find(index);
42 if (it2 == it->second.chunks.end()) {
48 std::optional<AvailabilityStore::ParachainBlock>
54 return it->second.pov;
network::ValidatorIndex ValidatorIndex
primitives::BlockHash CandidateHash
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
ValidatorIndex index
The index of this erasure-encoded chunk of data.
A chunk of erasure-encoded block data.
std::optional< ErasureChunk > getChunk(const CandidateHash &candidate_hash, ValidatorIndex index) override
void putPov(const CandidateHash &candidate_hash, const ParachainBlock &pov) override