Kagome
Polkadot Runtime Engine in C++17
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 
11 
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
virtual void tryExecuteNextRound(const std::shared_ptr< VotingRound > &prev_round)=0
virtual void updateNextRound(RoundNumber round_number)=0