Kagome
Polkadot Runtime Engine in C++17
|
#include <vote_weight.hpp>
Classes | |
struct | OneTypeVoteWeight |
Public Types | |
using | Weight = size_t |
Public Member Functions | |
Weight | sum (VoteType vote_type) const |
void | set (VoteType vote_type, size_t index, size_t weight) |
void | unset (VoteType vote_type, size_t index, size_t weight) |
Weight | total (VoteType vote_type, const std::vector< bool > &equivocators, const VoterSet &voter_set) const |
void | merge (const VoteWeight &other, const std::shared_ptr< VoterSet > &voter_set) |
bool | operator== (const VoteWeight &other) const |
Private Attributes | |
OneTypeVoteWeight | prevotes_weight |
OneTypeVoteWeight | precommits_weight |
Vote weight is a structure that keeps track of who voted for the vote and with which weight
Definition at line 23 of file vote_weight.hpp.
using kagome::consensus::grandpa::VoteWeight::Weight = size_t |
Definition at line 26 of file vote_weight.hpp.
|
inline |
Definition at line 127 of file vote_weight.hpp.
|
inline |
Definition at line 133 of file vote_weight.hpp.
|
inline |
Definition at line 95 of file vote_weight.hpp.
Definition at line 85 of file vote_weight.hpp.
|
inline |
Definition at line 115 of file vote_weight.hpp.
|
inline |
Definition at line 105 of file vote_weight.hpp.
|
private |
Definition at line 140 of file vote_weight.hpp.
|
private |
Definition at line 139 of file vote_weight.hpp.