Kagome
Polkadot Runtime Engine in C++17
grandpa_config.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_CONSENSUS_GRANDPA_GRANDPA_CONFIG_HPP
7 #define KAGOME_CORE_CONSENSUS_GRANDPA_GRANDPA_CONFIG_HPP
8 
10 
12 
15  struct GrandpaConfig {
17  std::shared_ptr<VoterSet> voters;
18 
21 
24 
26  std::optional<Id> id;
27  };
28 
29 } // namespace kagome::consensus::grandpa
30 
31 #endif // KAGOME_CORE_CONSENSUS_GRANDPA_GRANDPA_CONFIG_HPP
std::optional< Id > id
Key of the peer, do not confuse with libp2p peerid.
Clock::Duration Duration
Definition: common.hpp:29
RoundNumber round_number
Number of round.
std::shared_ptr< VoterSet > voters
Current round&#39;s authorities.
Duration duration
Time bound which is enough to gossip messages to everyone.