Kagome
Polkadot Runtime Engine in C++17
kagome::consensus::grandpa::VoteGraph::Entry Struct Reference

#include <vote_graph.hpp>

Inheritance diagram for kagome::consensus::grandpa::VoteGraph::Entry:
Collaboration diagram for kagome::consensus::grandpa::VoteGraph::Entry:

Public Member Functions

bool operator== (const Entry &o) const
 
std::optional< BlockHashgetAncestorBlockBy (BlockNumber n) const
 

Public Attributes

BlockNumber number {}
 
std::vector< BlockHashancestors {}
 
std::vector< BlockHashdescendants {}
 
VoteWeight cumulative_vote
 

Detailed Description

Definition at line 23 of file vote_graph.hpp.

Member Function Documentation

std::optional<BlockHash> kagome::consensus::grandpa::VoteGraph::Entry::getAncestorBlockBy ( BlockNumber  n) const
inline

Definition at line 42 of file vote_graph.hpp.

bool kagome::consensus::grandpa::VoteGraph::Entry::operator== ( const Entry o) const
inline

Definition at line 31 of file vote_graph.hpp.

Member Data Documentation

std::vector<BlockHash> kagome::consensus::grandpa::VoteGraph::Entry::ancestors {}

ancestor hashes in reverse order, e.g. ancestors[0] is the parent and the last entry is the hash of the parent vote-node.

Definition at line 27 of file vote_graph.hpp.

VoteWeight kagome::consensus::grandpa::VoteGraph::Entry::cumulative_vote

Definition at line 29 of file vote_graph.hpp.

std::vector<BlockHash> kagome::consensus::grandpa::VoteGraph::Entry::descendants {}

Definition at line 28 of file vote_graph.hpp.

BlockNumber kagome::consensus::grandpa::VoteGraph::Entry::number {}

Definition at line 24 of file vote_graph.hpp.


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