Kagome
Polkadot Runtime Engine in C++17
store.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_PARACHAIN_AVAILABILITY_BITFIELD_STORE_HPP
7 #define KAGOME_PARACHAIN_AVAILABILITY_BITFIELD_STORE_HPP
8 
10 
11 namespace kagome::parachain {
13  class BitfieldStore {
14  public:
17 
18  virtual ~BitfieldStore() = default;
19 
21  virtual void putBitfield(const BlockHash &relay_parent,
22  const SignedBitfield &bitfield) = 0;
23 
25  virtual std::vector<SignedBitfield> getBitfields(
26  const BlockHash &relay_parent) const = 0;
27  };
28 } // namespace kagome::parachain
29 
30 #endif // KAGOME_PARACHAIN_AVAILABILITY_BITFIELD_STORE_HPP
virtual ~BitfieldStore()=default
Signed< scale::BitVec > SignedBitfield
Signed availability bitfield.
Payload signed by validator.
Stores bitfields signed by validators.
Definition: store.hpp:13
virtual void putBitfield(const BlockHash &relay_parent, const SignedBitfield &bitfield)=0
Store bitfield at given block.
common::Hash256 BlockHash
Definition: block_id.hpp:15
virtual std::vector< SignedBitfield > getBitfields(const BlockHash &relay_parent) const =0
Get bitfields for given block.