Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
grandpa.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CORE_CONSENSUS_GRANDPA_GRANDPA
7
#define KAGOME_CORE_CONSENSUS_GRANDPA_GRANDPA
8
9
#include "
consensus/grandpa/grandpa_observer.hpp
"
10
#include "
consensus/grandpa/voting_round.hpp
"
11
12
namespace
kagome::consensus::grandpa
{
13
14
class
VotingRound;
15
20
class
Grandpa
{
21
public
:
22
virtual
~Grandpa
() =
default
;
23
30
virtual
void
tryExecuteNextRound
(
31
const
std::shared_ptr<VotingRound> &prev_round) = 0;
32
39
virtual
void
updateNextRound
(
RoundNumber
round_number) = 0;
40
};
41
42
}
// namespace kagome::consensus::grandpa
43
44
#endif // KAGOME_CORE_CONSENSUS_GRANDPA_GRANDPA
kagome::consensus::grandpa
Definition:
catch_up_observer.hpp:13
grandpa_observer.hpp
kagome::consensus::grandpa::Grandpa::tryExecuteNextRound
virtual void tryExecuteNextRound(const std::shared_ptr< VotingRound > &prev_round)=0
kagome::consensus::grandpa::Grandpa::~Grandpa
virtual ~Grandpa()=default
kagome::consensus::grandpa::Grandpa::updateNextRound
virtual void updateNextRound(RoundNumber round_number)=0
kagome::consensus::grandpa::Grandpa
Definition:
grandpa.hpp:20
voting_round.hpp
kagome::consensus::grandpa::RoundNumber
uint64_t RoundNumber
Definition:
common.hpp:25
core
consensus
grandpa
grandpa.hpp
Generated by
1.8.11