TARAXA
Loading...
Searching...
No Matches
verified_votes.hpp File Reference
#include <shared_mutex>
#include <unordered_map>
#include "common/types.hpp"
#include "logger/logger.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  taraxa::VotedBlock
 
struct  taraxa::VotesWithWeight
 
struct  taraxa::StepVotes
 
struct  taraxa::RoundVerifiedVotes
 
class  taraxa::VerifiedVotes
 

Namespaces

namespace  taraxa
 

Typedefs

using taraxa::TwoTVotedBlockMap = std::unordered_map< TwoTPlusOneVotedBlockType, VotedBlock >
 
using taraxa::UniqueVotersMap = std::unordered_map< addr_t, std::pair< std::shared_ptr< PbftVote >, std::shared_ptr< PbftVote > > >
 
using taraxa::StepVotesMap = std::map< PbftStep, StepVotes >
 
using taraxa::RoundVerifiedVotesMap = std::map< PbftRound, RoundVerifiedVotes >
 
using taraxa::PeriodVerifiedVotesMap = std::map< PbftPeriod, RoundVerifiedVotesMap >
 

Enumerations

enum class  taraxa::TwoTPlusOneVotedBlockType { taraxa::SoftVotedBlock , taraxa::CertVotedBlock , taraxa::NextVotedBlock , taraxa::NextVotedNullBlock }
 

Class Documentation

◆ taraxa::VotedBlock

struct taraxa::VotedBlock
Collaboration diagram for taraxa::VotedBlock:
Class Members
blk_hash_t hash
PbftStep step

◆ taraxa::VotesWithWeight

struct taraxa::VotesWithWeight
Class Members
unordered_map< vote_hash_t, shared_ptr< PbftVote > > votes
uint64_t weight

◆ taraxa::StepVotes

struct taraxa::StepVotes
Class Members
UniqueVotersMap unique_voters
unordered_map< blk_hash_t, VotesWithWeight > votes

◆ taraxa::RoundVerifiedVotes

struct taraxa::RoundVerifiedVotes
Class Members
PbftStep network_t_plus_one_step {0}
StepVotesMap step_votes
TwoTVotedBlockMap two_t_plus_one_voted_blocks_