![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
An alert is a combination of a serialized CUnsignedAlert and a signature. More...
#include <alert.h>
Public Member Functions | |
CAlert () | |
IMPLEMENT_SERIALIZE (READWRITE(vchMsg);READWRITE(vchSig);) void SetNull() | |
bool | IsNull () const |
uint256 | GetHash () const |
bool | IsInEffect () const |
bool | Cancels (const CAlert &alert) const |
bool | AppliesTo (int nVersion, std::string strSubVerIn) const |
bool | AppliesToMe () const |
bool | RelayTo (CNode *pnode) const |
bool | CheckSignature () const |
bool | ProcessAlert (bool fThread=true) |
![]() | |
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() | |
std::string | ToString () const |
void | print () const |
Static Public Member Functions | |
static CAlert | getAlertByHash (const uint256 &hash) |
Public Attributes | |
std::vector< unsigned char > | vchMsg |
std::vector< unsigned char > | vchSig |
![]() | |
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 |
An alert is a combination of a serialized CUnsignedAlert and a signature.
bool CAlert::AppliesTo | ( | int | nVersion, |
std::string | strSubVerIn | ||
) | const |
bool CAlert::AppliesToMe | ( | ) | const |
bool CAlert::Cancels | ( | const CAlert & | alert | ) | const |
bool CAlert::CheckSignature | ( | ) | const |
uint256 CAlert::GetHash | ( | ) | const |
bool CAlert::IsInEffect | ( | ) | const |
bool CAlert::IsNull | ( | ) | const |
bool CAlert::ProcessAlert | ( | bool | fThread = true | ) |
bool CAlert::RelayTo | ( | CNode * | pnode | ) | const |