22 auto &known_vote_variant = vote_it->second;
24 return visit_in_place(
28 if (vote == known_vote) {
47 auto &existing_vote = vote_it->second;
51 if (voting_message == vote) {
56 [](
const auto &...) {});
60 std::vector<VoteVariant> votes;
63 for (
const auto &[key, value] :
messages_) {
64 votes.push_back(value);
PushResult push(const SignedMessage &vote, size_t weight) override
std::vector< VoteVariant > getMessages() const override
std::map< Id, VoteVariant > messages_
void unpush(const SignedMessage &vote, size_t weight) override
size_t getTotalWeight() const override
std::pair< SignedMessage, SignedMessage > EquivocatorySignedMessage