Kagome
Polkadot Runtime Engine in C++17
|
#include <vote_graph.hpp>
Public Member Functions | |
bool | operator== (const Entry &o) const |
std::optional< BlockHash > | getAncestorBlockBy (BlockNumber n) const |
Public Attributes | |
BlockNumber | number {} |
std::vector< BlockHash > | ancestors {} |
std::vector< BlockHash > | descendants {} |
VoteWeight | cumulative_vote |
Definition at line 23 of file vote_graph.hpp.
|
inline |
Definition at line 42 of file vote_graph.hpp.
|
inline |
Definition at line 31 of file vote_graph.hpp.
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.