6 #ifndef BITCOIN_ALERT_H
7 #define BITCOIN_ALERT_H
21 extern std::map<uint256, CAlert>
mapAlerts;
51 template <
typename Stream,
typename Operation>
89 template <
typename Stream,
typename Operation>
102 bool CheckSignature(
const std::vector<unsigned char>& alertKey)
const;
103 bool ProcessAlert(
const std::vector<unsigned char>& alertKey,
bool fThread =
true);
104 static void Notify(
const std::string& strMessage,
bool fThread =
true);
CCriticalSection cs_mapAlerts
std::map< uint256, CAlert > mapAlerts
An alert is a combination of a serialized CUnsignedAlert and a signature.
bool CheckSignature(const std::vector< unsigned char > &alertKey) const
std::vector< unsigned char > vchSig
bool Cancels(const CAlert &alert) const
void SerializationOp(Stream &s, Operation ser_action)
bool AppliesTo(int nVersion, const std::string &strSubVerIn) const
static CAlert getAlertByHash(const uint256 &hash)
static void Notify(const std::string &strMessage, bool fThread=true)
std::vector< unsigned char > vchMsg
bool ProcessAlert(const std::vector< unsigned char > &alertKey, bool fThread=true)
Wrapped boost mutex: supports recursive locking, but no waiting TODO: We should move away from using ...
Information about a peer.
Alerts are for notifying old versions if they become too obsolete and need to upgrade.
void SerializationOp(Stream &s, Operation ser_action)
std::set< std::string > setSubVer
std::string ToString() const
std::set< int > setCancel
#define LIMITED_STRING(obj, n)