Kagome
Polkadot Runtime Engine in C++17
store_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_PARACHAIN_AVAILABILITY_BITFIELD_STORE_IMPL_HPP
7 #define KAGOME_PARACHAIN_AVAILABILITY_BITFIELD_STORE_IMPL_HPP
8 
10 
11 #include <unordered_map>
12 
13 namespace kagome::parachain {
15  public:
16  ~BitfieldStoreImpl() override = default;
17 
18  void putBitfield(const BlockHash &relay_parent,
19  const SignedBitfield &bitfield) override;
20  std::vector<SignedBitfield> getBitfields(
21  const BlockHash &relay_parent) const override;
22 
23  private:
24  std::unordered_map<BlockHash, std::vector<SignedBitfield>> bitfields_;
25  };
26 } // namespace kagome::parachain
27 
28 #endif // KAGOME_PARACHAIN_AVAILABILITY_BITFIELD_STORE_IMPL_HPP
network::SignedBitfield SignedBitfield
Definition: store.hpp:16
Stores bitfields signed by validators.
Definition: store.hpp:13
primitives::BlockHash BlockHash
Definition: store.hpp:15
std::unordered_map< BlockHash, std::vector< SignedBitfield > > bitfields_
Definition: store_impl.hpp:24
void putBitfield(const BlockHash &relay_parent, const SignedBitfield &bitfield) override
Definition: store_impl.cpp:9
std::vector< SignedBitfield > getBitfields(const BlockHash &relay_parent) const override
Definition: store_impl.cpp:14