5#ifndef BITCOIN_AVALANCHE_PROTOCOL_H
6#define BITCOIN_AVALANCHE_PROTOCOL_H
40 Response(uint64_t roundIn, uint32_t cooldownIn, std::vector<Vote> votesIn)
49 READWRITE(obj.round, obj.cooldown, obj.votes);
58 Poll(uint64_t roundIn, std::vector<CInv> invsIn)
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.