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