Kagome
Polkadot Runtime Engine in C++17
proposer.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_AUTHORSHIP_PROPOSER_TEST_HPP
7 #define KAGOME_CORE_AUTHORSHIP_PROPOSER_TEST_HPP
8 
9 #include "clock/clock.hpp"
10 #include "primitives/block.hpp"
11 #include "primitives/common.hpp"
12 #include "primitives/digest.hpp"
14 
15 namespace kagome::authorship {
16 
20  class Proposer {
21  public:
22  virtual ~Proposer() = default;
23 
31  virtual outcome::result<primitives::Block> propose(
32  const primitives::BlockInfo &parent_block,
33  const primitives::InherentData &inherent_data,
34  const primitives::Digest &inherent_digest) = 0;
35  };
36 
37 } // namespace kagome::authorship
38 
39 #endif // KAGOME_CORE_AUTHORSHIP_PROPOSER_TEST_HPP
virtual ~Proposer()=default
virtual outcome::result< primitives::Block > propose(const primitives::BlockInfo &parent_block, const primitives::InherentData &inherent_data, const primitives::Digest &inherent_digest)=0