![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <alert.h>
Public Member Functions | |
CAlert () | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion) |
void | SetNull () |
bool | IsNull () const |
uint256 | GetHash () const |
bool | IsInEffect () const |
bool | Cancels (const CAlert &alert) const |
bool | AppliesTo (int nVersion, const std::string &strSubVerIn) const |
bool | AppliesToMe () const |
bool | RelayTo (CNode *pnode, CConnman &connman) const |
bool | Sign () |
bool | CheckSignature (const std::vector< unsigned char > &alertKey) const |
bool | ProcessAlert (const std::vector< unsigned char > &alertKey, bool fThread=true) |
![]() | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion) |
void | SetNull () |
std::string | ToString () const |
Static Public Member Functions | |
static void | Notify (const std::string &strMessage, bool fThread) |
static CAlert | getAlertByHash (const uint256 &hash) |
Public Attributes | |
std::vector< unsigned char > | vchMsg |
std::vector< unsigned char > | vchSig |
ADD_SERIALIZE_METHODS | |
![]() | |
int | nVersion |
int64_t | nRelayUntil |
int64_t | nExpiration |
int | nID |
int | nCancel |
std::set< int > | setCancel |
int | nMinVer |
int | nMaxVer |
std::set< std::string > | setSubVer |
int | nPriority |
std::string | strComment |
std::string | strStatusBar |
std::string | strReserved |
ADD_SERIALIZE_METHODS | |
An alert is a combination of a serialized CUnsignedAlert and a signature.
bool CAlert::AppliesTo | ( | int | nVersion, |
const std::string & | strSubVerIn | ||
) | const |
bool CAlert::AppliesToMe | ( | ) | const |
Definition at line 123 of file alert.cpp.
Referenced by GetWarnings().
bool CAlert::Cancels | ( | const CAlert & | alert | ) | const |
Definition at line 108 of file alert.cpp.
Referenced by ProcessAlert().
bool CAlert::CheckSignature | ( | const std::vector< unsigned char > & | alertKey | ) | const |
Definition at line 182 of file alert.cpp.
Referenced by ClientModel::updateAlert().
bool CAlert::IsInEffect | ( | ) | const |
Definition at line 103 of file alert.cpp.
Referenced by ProcessAlert().
bool CAlert::IsNull | ( | ) | const |
Definition at line 93 of file alert.cpp.
Referenced by ClientModel::updateAlert().
|
static |
Definition at line 271 of file alert.cpp.
Referenced by CheckForkWarningConditions(), and UpdateTip().
bool CAlert::ProcessAlert | ( | const std::vector< unsigned char > & | alertKey, |
bool | fThread = true |
||
) |
Definition at line 128 of file alert.cpp.
Referenced by ProcessMessage().
|
inline |
bool CAlert::Sign | ( | ) |
Definition at line 149 of file alert.cpp.
Referenced by ThreadSendAlert().
std::vector<unsigned char> CAlert::vchMsg |
Definition at line 80 of file alert.h.
Referenced by SerializationOp().
std::vector<unsigned char> CAlert::vchSig |
Definition at line 81 of file alert.h.
Referenced by SerializationOp().