Kagome
Polkadot Runtime Engine in C++17
block_executor.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CONSENSUS_BLOCKEXECUTOR
7 #define KAGOME_CONSENSUS_BLOCKEXECUTOR
8 
9 #include "outcome/outcome.hpp"
11 
12 namespace kagome::consensus {
13 
14  class BlockExecutor {
15  public:
16  virtual ~BlockExecutor() = default;
17 
18  virtual outcome::result<void> applyBlock(primitives::BlockData &&block) = 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_BLOCKEXECUTOR
virtual outcome::result< void > applyJustification(const primitives::BlockInfo &block_info, const primitives::Justification &justification)=0
virtual ~BlockExecutor()=default
virtual outcome::result< void > applyBlock(primitives::BlockData &&block)=0