Kagome
Polkadot Runtime Engine in C++17
block_appender.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CONSENSUS_BLOCKAPPENDER
7 #define KAGOME_CONSENSUS_BLOCKAPPENDER
8 
9 #include "outcome/outcome.hpp"
11 
12 namespace kagome::consensus {
13 
14  class BlockAppender {
15  public:
16  virtual ~BlockAppender() = default;
17 
18  virtual outcome::result<void> appendBlock(primitives::BlockData &&b) = 0;
19 
20  virtual outcome::result<void> applyJustification(
21  const primitives::BlockInfo &block_info,
22  const primitives::Justification &justification) = 0;
23  };
24 
25 } // namespace kagome::consensus
26 
27 #endif // KAGOME_CONSENSUS_BLOCKAPPENDER
virtual outcome::result< void > appendBlock(primitives::BlockData &&b)=0
virtual ~BlockAppender()=default
virtual outcome::result< void > applyJustification(const primitives::BlockInfo &block_info, const primitives::Justification &justification)=0