Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
justification_observer.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CONSENSUS_GRANDPA_JUSTIFICATIONOBSERVER
7
#define KAGOME_CONSENSUS_GRANDPA_JUSTIFICATIONOBSERVER
8
9
#include "
consensus/grandpa/structs.hpp
"
10
#include "
primitives/common.hpp
"
11
12
namespace
kagome::consensus::grandpa
{
13
18
struct
JustificationObserver
{
19
virtual
~JustificationObserver
() =
default
;
20
29
virtual
outcome::result<void>
applyJustification
(
30
const
primitives::BlockInfo
&block_info,
31
const
GrandpaJustification
&justification) = 0;
32
};
33
34
}
// namespace kagome::consensus::grandpa
35
36
#endif // KAGOME_CONSENSUS_GRANDPA_JUSTIFICATIONOBSERVER
common.hpp
kagome::primitives::detail::BlockInfoT
Definition:
common.hpp:26
kagome::consensus::grandpa
Definition:
catch_up_observer.hpp:13
structs.hpp
kagome::consensus::grandpa::JustificationObserver::~JustificationObserver
virtual ~JustificationObserver()=default
kagome::consensus::grandpa::JustificationObserver
observes justification assigned to syncing blocks.
Definition:
justification_observer.hpp:18
kagome::consensus::grandpa::GrandpaJustification
Definition:
structs.hpp:151
kagome::consensus::grandpa::JustificationObserver::applyJustification
virtual outcome::result< void > applyJustification(const primitives::BlockInfo &block_info, const GrandpaJustification &justification)=0
core
consensus
grandpa
justification_observer.hpp
Generated by
1.8.11