Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche.h
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
class AvalancheResponse { | class AvalancheResponse { | ||||
uint64_t round; | uint64_t round; | ||||
uint32_t cooldown; | uint32_t cooldown; | ||||
std::vector<AvalancheVote> votes; | std::vector<AvalancheVote> votes; | ||||
public: | public: | ||||
AvalancheResponse() : round(-1), cooldown(-1) {} | |||||
AvalancheResponse(uint64_t roundIn, uint32_t cooldownIn, | AvalancheResponse(uint64_t roundIn, uint32_t cooldownIn, | ||||
std::vector<AvalancheVote> votesIn) | std::vector<AvalancheVote> votesIn) | ||||
: round(roundIn), cooldown(cooldownIn), votes(votesIn) {} | : round(roundIn), cooldown(cooldownIn), votes(votesIn) {} | ||||
uint64_t getRound() const { return round; } | uint64_t getRound() const { return round; } | ||||
uint32_t getCooldown() const { return cooldown; } | uint32_t getCooldown() const { return cooldown; } | ||||
const std::vector<AvalancheVote> &GetVotes() const { return votes; } | const std::vector<AvalancheVote> &GetVotes() const { return votes; } | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |