Kagome
Polkadot Runtime Engine in C++17
|
#include <grandpa_context.hpp>
Classes | |
class | Guard |
Static Public Member Functions | |
static void | set (std::shared_ptr< GrandpaContext > context) |
static std::optional< std::shared_ptr< GrandpaContext > > | get () |
Public Attributes | |
std::optional< const libp2p::peer::PeerId > | peer_id {} |
std::optional< const network::VoteMessage > | vote {} |
std::optional< const network::CatchUpResponse > | catch_up_response {} |
std::optional< const network::FullCommitMessage > | commit {} |
std::set< primitives::BlockInfo, std::greater< primitives::BlockInfo > > | missing_blocks {} |
size_t | checked_signature_counter = 0 |
size_t | invalid_signature_counter = 0 |
size_t | unknown_voter_counter = 0 |
Static Private Member Functions | |
static std::optional< std::shared_ptr< GrandpaContext > > & | instance () |
static void | create () |
static std::shared_ptr< GrandpaContext > | release () |
Definition at line 16 of file grandpa_context.hpp.
|
inlinestaticprivate |
Definition at line 70 of file grandpa_context.hpp.
|
inlinestatic |
Definition at line 59 of file grandpa_context.hpp.
|
inlinestaticprivate |
Definition at line 65 of file grandpa_context.hpp.
|
inlinestaticprivate |
Definition at line 77 of file grandpa_context.hpp.
|
inlinestatic |
Definition at line 49 of file grandpa_context.hpp.
std::optional<const network::CatchUpResponse> kagome::consensus::grandpa::GrandpaContext::catch_up_response {} |
Definition at line 41 of file grandpa_context.hpp.
size_t kagome::consensus::grandpa::GrandpaContext::checked_signature_counter = 0 |
Definition at line 45 of file grandpa_context.hpp.
std::optional<const network::FullCommitMessage> kagome::consensus::grandpa::GrandpaContext::commit {} |
Definition at line 42 of file grandpa_context.hpp.
size_t kagome::consensus::grandpa::GrandpaContext::invalid_signature_counter = 0 |
Definition at line 46 of file grandpa_context.hpp.
std::set<primitives::BlockInfo, std::greater<primitives::BlockInfo> > kagome::consensus::grandpa::GrandpaContext::missing_blocks {} |
Definition at line 44 of file grandpa_context.hpp.
std::optional<const libp2p::peer::PeerId> kagome::consensus::grandpa::GrandpaContext::peer_id {} |
Definition at line 39 of file grandpa_context.hpp.
size_t kagome::consensus::grandpa::GrandpaContext::unknown_voter_counter = 0 |
Definition at line 47 of file grandpa_context.hpp.
std::optional<const network::VoteMessage> kagome::consensus::grandpa::GrandpaContext::vote {} |
Definition at line 40 of file grandpa_context.hpp.