6 #ifndef BITCOIN_ALERT_H 7 #define BITCOIN_ALERT_H 22 extern std::map<uint256, CAlert>
mapAlerts;
52 template <
typename Stream,
typename Operation>
90 template <
typename Stream,
typename Operation>
105 bool CheckSignature(
const std::vector<unsigned char>& alertKey)
const;
106 bool ProcessAlert(
const std::vector<unsigned char>& alertKey,
bool fThread =
true);
107 static void Notify(
const std::string& strMessage,
bool fThread);
115 #endif // BITCOIN_ALERT_H
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
std::map< uint256, CAlert > mapAlerts
std::string ToString() const
bool AppliesTo(int nVersion, const std::string &strSubVerIn) const
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
std::vector< unsigned char > vchMsg
static CAlert getAlertByHash(const uint256 &hash)
std::set< std::string > setSubVer
std::vector< unsigned char > vchSig
CCriticalSection cs_mapAlerts
static void Notify(const std::string &strMessage, bool fThread)
#define LIMITED_STRING(obj, n)
std::set< int > setCancel
bool Cancels(const CAlert &alert) const
bool RelayTo(CNode *pnode, CConnman &connman) const
bool ProcessAlert(const std::vector< unsigned char > &alertKey, bool fThread=true)
bool CheckSignature(const std::vector< unsigned char > &alertKey) const