6 #ifndef _BITCOINALERT_H_
7 #define _BITCOINALERT_H_ 1
21 extern std::map<uint256, CAlert>
mapAlerts;
97 bool AppliesTo(
int nVersion, std::string strSubVerIn)
const;
std::set< std::string > setSubVer
std::map< uint256, CAlert > mapAlerts
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
CCriticalSection cs_mapAlerts
static CAlert getAlertByHash(const uint256 &hash)
#define LIMITED_STRING(obj, n)
bool CheckSignature() const
bool Cancels(const CAlert &alert) const
Information about a peer.
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(LIMITED_STRING(strComment, 65536));READWRITE(LIMITED_STRING(strStatusBar, 256));READWRITE(LIMITED_STRING(strReserved, 256));) void SetNull()