Kagome
Polkadot Runtime Engine in C++17
kagome::parachain::AvailabilityStore Class Referenceabstract

Stores ErasureChunk, PoV and PersistedValidationData. More...

#include <store.hpp>

Inheritance diagram for kagome::parachain::AvailabilityStore:
Collaboration diagram for kagome::parachain::AvailabilityStore:

Public Types

using CandidateHash = network::CandidateHash
 
using ValidatorIndex = network::ValidatorIndex
 
using ErasureChunk = network::ErasureChunk
 
using ParachainBlock = network::ParachainBlock
 
using PersistedValidationData = runtime::PersistedValidationData
 

Public Member Functions

virtual ~AvailabilityStore ()=default
 
virtual bool hasChunk (const CandidateHash &candidate_hash, ValidatorIndex index)=0
 Has ErasureChunk. More...
 
virtual bool hasPov (const CandidateHash &candidate_hash)=0
 Has PoV. More...
 
virtual bool hasData (const CandidateHash &candidate_hash)=0
 Has PersistedValidationData. More...
 
virtual std::optional< ErasureChunkgetChunk (const CandidateHash &candidate_hash, ValidatorIndex index)=0
 Get ErasureChunk. More...
 
virtual std::optional< ParachainBlockgetPov (const CandidateHash &candidate_hash)=0
 Get PoV. More...
 
virtual void putChunk (const CandidateHash &candidate_hash, const ErasureChunk &chunk)=0
 Store ErasureChunk. More...
 
virtual void putPov (const CandidateHash &candidate_hash, const ParachainBlock &pov)=0
 Store PoV. More...
 
virtual void putData (const CandidateHash &candidate_hash, const PersistedValidationData &data)=0
 Store PersistedValidationData. More...
 

Detailed Description

Stores ErasureChunk, PoV and PersistedValidationData.

Definition at line 16 of file store.hpp.

Member Typedef Documentation

Constructor & Destructor Documentation

virtual kagome::parachain::AvailabilityStore::~AvailabilityStore ( )
virtualdefault

Member Function Documentation

virtual std::optional<ErasureChunk> kagome::parachain::AvailabilityStore::getChunk ( const CandidateHash candidate_hash,
ValidatorIndex  index 
)
pure virtual

Get ErasureChunk.

virtual std::optional<ParachainBlock> kagome::parachain::AvailabilityStore::getPov ( const CandidateHash candidate_hash)
pure virtual

Get PoV.

virtual bool kagome::parachain::AvailabilityStore::hasChunk ( const CandidateHash candidate_hash,
ValidatorIndex  index 
)
pure virtual

Has ErasureChunk.

virtual bool kagome::parachain::AvailabilityStore::hasData ( const CandidateHash candidate_hash)
pure virtual

Has PersistedValidationData.

virtual bool kagome::parachain::AvailabilityStore::hasPov ( const CandidateHash candidate_hash)
pure virtual

Has PoV.

virtual void kagome::parachain::AvailabilityStore::putChunk ( const CandidateHash candidate_hash,
const ErasureChunk chunk 
)
pure virtual

Store ErasureChunk.

virtual void kagome::parachain::AvailabilityStore::putData ( const CandidateHash candidate_hash,
const PersistedValidationData data 
)
pure virtual

Store PersistedValidationData.

virtual void kagome::parachain::AvailabilityStore::putPov ( const CandidateHash candidate_hash,
const ParachainBlock pov 
)
pure virtual

Store PoV.


The documentation for this class was generated from the following file: