6 #ifndef _BITCOINALERT_H_
7 #define _BITCOINALERT_H_ 1
90 bool AppliesTo(
int nVersion, std::string strSubVerIn)
const;
std::set< std::string > setSubVer
IMPLEMENT_SERIALIZE(READWRITE(this->nVersion);nVersion=this->nVersion;READWRITE(nRelayUntil);READWRITE(nExpiration);READWRITE(nID);READWRITE(nCancel);READWRITE(setCancel);READWRITE(nMinVer);READWRITE(nMaxVer);READWRITE(setSubVer);READWRITE(nPriority);READWRITE(strComment);READWRITE(strStatusBar);READWRITE(strReserved);) void SetNull()
std::vector< unsigned char > vchMsg
bool AppliesTo(int nVersion, std::string strSubVerIn) const
bool ProcessAlert(bool fThread=true)
IMPLEMENT_SERIALIZE(READWRITE(vchMsg);READWRITE(vchSig);) void SetNull()
An alert is a combination of a serialized CUnsignedAlert and a signature.
std::string ToString() const
Alerts are for notifying old versions if they become too obsolete and need to upgrade.
std::vector< unsigned char > vchSig
bool RelayTo(CNode *pnode) const
std::set< int > setCancel
static CAlert getAlertByHash(const uint256 &hash)
bool CheckSignature() const
bool Cancels(const CAlert &alert) const
Information about a peer.