Skip to content

sgns::ConsensusManager::ProposalState

Runtime state tracked for one proposal.

Public Attributes

Name
Proposal proposal
Proposal currently tracked.
std::vector< Vote > votes
Votes accepted for the proposal.
std::string slot_key
Slot key grouping competing proposals.
uint64_t total_weight
Total eligible weight for tally.
uint64_t approved_weight
Approved weight accumulated so far.
std::unordered_set< std::string > seen_voters
Voter ids already counted.
bool quorum_reached
Whether quorum has been reached.
uint64_t quorum_reached_ts_ms
Timestamp when quorum was reached.
uint64_t last_attempt_round
Last certificate-attempt round.

Public Attributes Documentation

variable proposal

Proposal proposal;

Proposal currently tracked.

variable votes

std::vector< Vote > votes;

Votes accepted for the proposal.

variable slot_key

std::string slot_key;

Slot key grouping competing proposals.

variable total_weight

uint64_t total_weight = 0;

Total eligible weight for tally.

variable approved_weight

uint64_t approved_weight = 0;

Approved weight accumulated so far.

variable seen_voters

std::unordered_set< std::string > seen_voters;

Voter ids already counted.

variable quorum_reached

bool quorum_reached = false;

Whether quorum has been reached.

variable quorum_reached_ts_ms

uint64_t quorum_reached_ts_ms = 0;

Timestamp when quorum was reached.

variable last_attempt_round

uint64_t last_attempt_round = NO_ROUND;

Last certificate-attempt round.


Updated on 2026-06-05 at 17:22:18 -0700