5#ifndef BITCOIN_AVALANCHE_PROTOCOL_H
6#define BITCOIN_AVALANCHE_PROTOCOL_H
Hello(Delegation delegationIn, SchnorrSig sigIn)
SERIALIZE_METHODS(Hello, obj)
const std::vector< CInv > & GetInvs() const
Poll(uint64_t roundIn, std::vector< CInv > invsIn)
SERIALIZE_METHODS(Poll, obj)
uint32_t getCooldown() const
const std::vector< Vote > & GetVotes() const
SERIALIZE_METHODS(Response, obj)
Response(uint64_t roundIn, uint32_t cooldownIn, std::vector< Vote > votesIn)
uint64_t getRound() const
std::vector< Vote > votes
SERIALIZE_METHODS(Vote, obj)
Vote(uint32_t errorIn, uint256 hashIn)
uint32_t GetError() const
const uint256 & GetHash() const
std::array< uint8_t, CPubKey::SCHNORR_SIZE > SchnorrSig
a Schnorr signature
Implement std::hash so RCUPtr can be used as a key for maps or sets.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...