#include <vote_tracker_impl.hpp>
Definition at line 13 of file vote_tracker_impl.hpp.
std::vector< VoteVariant > kagome::consensus::grandpa::VoteTrackerImpl::getMessages |
( |
| ) |
const |
|
overridevirtual |
size_t kagome::consensus::grandpa::VoteTrackerImpl::getTotalWeight |
( |
| ) |
const |
|
overridevirtual |
Attempts to push a vote to a tracker
- Parameters
-
vote | the voting message being pushed |
weight | weight of this vote |
- Returns
- SUCCESS if it is the first pushed vote of the voter, EQUIVOCATED if the voting peer already voted for a different block, DUPLICATE if the peer already voted for another block more than once or voted for the same block
Implements kagome::consensus::grandpa::VoteTracker.
Definition at line 13 of file vote_tracker_impl.cpp.
void kagome::consensus::grandpa::VoteTrackerImpl::unpush |
( |
const SignedMessage & |
vote, |
|
|
size_t |
weight |
|
) |
| |
|
overridevirtual |
std::map<Id, VoteVariant> kagome::consensus::grandpa::VoteTrackerImpl::messages_ |
|
private |
size_t kagome::consensus::grandpa::VoteTrackerImpl::total_weight_ = 0 |
|
private |
The documentation for this class was generated from the following files: