Kagome
Polkadot Runtime Engine in C++17
block_builder_factory.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_AUTHORSHIP_BLOCK_BUILDER_FACTORY_HPP
7 #define KAGOME_CORE_AUTHORSHIP_BLOCK_BUILDER_FACTORY_HPP
8 
9 #include <vector>
10 
12 #include "primitives/common.hpp"
15 
16 namespace kagome::authorship {
17 
23  public:
24  virtual ~BlockBuilderFactory() = default;
25 
30  virtual outcome::result<std::unique_ptr<BlockBuilder>> make(
31  const primitives::BlockInfo &parent_block,
32  primitives::Digest inherent_digest) const = 0;
33  };
34 
35 } // namespace kagome::authorship
36 
37 #endif // KAGOME_CORE_AUTHORSHIP_BLOCK_BUILDER_FACTORY_HPP
virtual outcome::result< std::unique_ptr< BlockBuilder > > make(const primitives::BlockInfo &parent_block, primitives::Digest inherent_digest) const =0