Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
10
#include "
primitives/block_data.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
kagome::primitives::detail::BlockInfoT
Definition:
common.hpp:26
kagome::consensus::BlockExecutor::applyJustification
virtual outcome::result< void > applyJustification(const primitives::BlockInfo &block_info, const primitives::Justification &justification)=0
kagome::consensus::BlockExecutor::~BlockExecutor
virtual ~BlockExecutor()=default
block_data.hpp
outcome.hpp
kagome::consensus::BlockExecutor
Definition:
block_executor.hpp:14
kagome::consensus::BlockExecutor::applyBlock
virtual outcome::result< void > applyBlock(primitives::BlockData &&block)=0
kagome::consensus
Definition:
digest_tracker_impl.hpp:16
kagome::primitives::BlockData
Definition:
block_data.hpp:21
kagome::primitives::Justification
Definition:
justification.hpp:16
core
consensus
babe
block_executor.hpp
Generated by
1.8.11