Kagome
Polkadot Runtime Engine in C++17
kagome::consensus::grandpa::GrandpaContext Class Referencefinal

#include <grandpa_context.hpp>

Collaboration diagram for kagome::consensus::grandpa::GrandpaContext:

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::CatchUpResponsecatch_up_response {}
 
std::optional< const network::FullCommitMessagecommit {}
 
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< GrandpaContextrelease ()
 

Detailed Description

Definition at line 16 of file grandpa_context.hpp.

Member Function Documentation

static void kagome::consensus::grandpa::GrandpaContext::create ( )
inlinestaticprivate

Definition at line 70 of file grandpa_context.hpp.

static std::optional<std::shared_ptr<GrandpaContext> > kagome::consensus::grandpa::GrandpaContext::get ( )
inlinestatic

Definition at line 59 of file grandpa_context.hpp.

static std::optional<std::shared_ptr<GrandpaContext> >& kagome::consensus::grandpa::GrandpaContext::instance ( )
inlinestaticprivate

Definition at line 65 of file grandpa_context.hpp.

static std::shared_ptr<GrandpaContext> kagome::consensus::grandpa::GrandpaContext::release ( )
inlinestaticprivate

Definition at line 77 of file grandpa_context.hpp.

static void kagome::consensus::grandpa::GrandpaContext::set ( std::shared_ptr< GrandpaContext context)
inlinestatic

Definition at line 49 of file grandpa_context.hpp.

Member Data Documentation

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.


The documentation for this class was generated from the following file: