5 #ifndef GOVERNANCE_VOTE_H 6 #define GOVERNANCE_VOTE_H 11 #include <boost/lexical_cast.hpp> 120 void SetTime(int64_t nTimeIn) { nTime = nTimeIn; }
122 void SetSignature(
const std::vector<unsigned char>& vchSigIn) { vchSig = vchSigIn; }
124 bool Sign(
CKey& keyMasternode,
CPubKey& pubKeyMasternode);
125 bool IsValid(
bool fSignatureCheck)
const;
126 void Relay(
CConnman& connman)
const;
153 std::ostringstream ostr;
154 ostr << vinMasternode.
ToString() <<
":" 191 template <
typename Stream,
typename Operation>
192 inline void SerializationOp(Stream& s, Operation ser_action,
int nType,
int nVersion) {
int64_t GetTimestamp() const
uint256 GetTypeHash() const
vote_outcome_enum_t GetOutcome() const
std::string GetVoteString() const
vote_signal_enum_t GetSignal() const
void SetTime(int64_t nTimeIn)
std::string ToString() const
const COutPoint & GetMasternodeOutpoint() const
std::string ToString() const
bool operator==(const CGovernanceVote &vote1, const CGovernanceVote &vote2)
void SetSignature(const std::vector< unsigned char > &vchSigIn)
std::vector< unsigned char > vchSig
const uint256 & GetParentHash() const
static const int PROTOCOL_VERSION
static std::string ConvertOutcomeToString(vote_outcome_enum_t nOutcome)
static std::string ConvertSignalToString(vote_signal_enum_t nSignal)
static const int MAX_SUPPORTED_VOTE_SIGNAL
bool operator<(const vote_time_pair_t &p1, const vote_time_pair_t &p2)
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)