Kagome
Polkadot Runtime Engine in C++17
kagome::parachain::BitfieldStoreImpl Class Reference

#include <store_impl.hpp>

Inheritance diagram for kagome::parachain::BitfieldStoreImpl:
Collaboration diagram for kagome::parachain::BitfieldStoreImpl:

Public Member Functions

 ~BitfieldStoreImpl () override=default
 
void putBitfield (const BlockHash &relay_parent, const SignedBitfield &bitfield) override
 
std::vector< SignedBitfieldgetBitfields (const BlockHash &relay_parent) const override
 
- Public Member Functions inherited from kagome::parachain::BitfieldStore
virtual ~BitfieldStore ()=default
 
virtual void putBitfield (const BlockHash &relay_parent, const SignedBitfield &bitfield)=0
 Store bitfield at given block. More...
 
virtual std::vector< SignedBitfieldgetBitfields (const BlockHash &relay_parent) const =0
 Get bitfields for given block. More...
 

Private Attributes

std::unordered_map< BlockHash, std::vector< SignedBitfield > > bitfields_
 

Additional Inherited Members

- Public Types inherited from kagome::parachain::BitfieldStore
using BlockHash = primitives::BlockHash
 
using SignedBitfield = network::SignedBitfield
 

Detailed Description

Definition at line 14 of file store_impl.hpp.

Constructor & Destructor Documentation

kagome::parachain::BitfieldStoreImpl::~BitfieldStoreImpl ( )
overridedefault

Member Function Documentation

std::vector< BitfieldStore::SignedBitfield > kagome::parachain::BitfieldStoreImpl::getBitfields ( const BlockHash relay_parent) const
override

Definition at line 14 of file store_impl.cpp.

void kagome::parachain::BitfieldStoreImpl::putBitfield ( const BlockHash relay_parent,
const SignedBitfield bitfield 
)
override

Definition at line 9 of file store_impl.cpp.

Member Data Documentation

std::unordered_map<BlockHash, std::vector<SignedBitfield> > kagome::parachain::BitfieldStoreImpl::bitfields_
private

Definition at line 24 of file store_impl.hpp.


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