![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <masternode.h>
Public Member Functions | |
CMasternodePing ()=default | |
CMasternodePing (const COutPoint &outpoint) | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion) |
uint256 | GetHash () const |
bool | IsExpired () const |
bool | Sign (const CKey &keyMasternode, const CPubKey &pubKeyMasternode) |
bool | CheckSignature (CPubKey &pubKeyMasternode, int &nDos) |
bool | SimpleCheck (int &nDos) |
bool | CheckAndUpdate (CMasternode *pmn, bool fFromNewBroadcast, int &nDos, CConnman &connman) |
void | Relay (CConnman &connman) |
Public Attributes | |
CTxIn | vin {} |
uint256 | blockHash {} |
int64_t | sigTime {} |
std::vector< unsigned char > | vchSig {} |
bool | fSentinelIsCurrent = false |
uint32_t | nSentinelVersion {DEFAULT_SENTINEL_VERSION} |
ADD_SERIALIZE_METHODS | |
Definition at line 32 of file masternode.h.
|
default |
CMasternodePing::CMasternodePing | ( | const COutPoint & | outpoint | ) |
Definition at line 671 of file masternode.cpp.
bool CMasternodePing::CheckAndUpdate | ( | CMasternode * | pmn, |
bool | fFromNewBroadcast, | ||
int & | nDos, | ||
CConnman & | connman | ||
) |
Definition at line 743 of file masternode.cpp.
Referenced by CMasternode::UpdateFromNewBroadcast().
bool CMasternodePing::CheckSignature | ( | CPubKey & | pubKeyMasternode, |
int & | nDos | ||
) |
Definition at line 703 of file masternode.cpp.
Referenced by CheckAndUpdate().
|
inline |
Definition at line 65 of file masternode.h.
Referenced by Relay(), CMasternodeMan::SetMasternodeLastPing(), CMasternode::UpdateFromNewBroadcast(), and CMasternodeMan::UpdateMasternodeList().
|
inline |
Definition at line 73 of file masternode.h.
void CMasternodePing::Relay | ( | CConnman & | connman | ) |
Definition at line 824 of file masternode.cpp.
Referenced by CheckAndUpdate(), and CActiveMasternode::SendMasternodePing().
|
inline |
Definition at line 50 of file masternode.h.
Definition at line 681 of file masternode.cpp.
Referenced by CMasternodeBroadcast::Create(), and CActiveMasternode::SendMasternodePing().
bool CMasternodePing::SimpleCheck | ( | int & | nDos | ) |
Definition at line 718 of file masternode.cpp.
Referenced by CheckAndUpdate(), and CMasternodeBroadcast::SimpleCheck().
CMasternodePing::ADD_SERIALIZE_METHODS |
Definition at line 47 of file masternode.h.
uint256 CMasternodePing::blockHash {} |
Definition at line 36 of file masternode.h.
Referenced by CheckAndUpdate(), CheckSignature(), CMasternodePing(), masternodebroadcast(), operator==(), SerializationOp(), Sign(), and SimpleCheck().
bool CMasternodePing::fSentinelIsCurrent = false |
Definition at line 39 of file masternode.h.
Referenced by masternodelist(), CActiveMasternode::SendMasternodePing(), SerializationOp(), and CMasternodeMan::SetMasternodeLastPing().
uint32_t CMasternodePing::nSentinelVersion {DEFAULT_SENTINEL_VERSION} |
Definition at line 41 of file masternode.h.
Referenced by masternodelist(), CActiveMasternode::SendMasternodePing(), and SerializationOp().
int64_t CMasternodePing::sigTime {} |
Definition at line 37 of file masternode.h.
Referenced by CMasternode::Check(), CheckAndUpdate(), CMasternodeMan::CheckMnbAndUpdateMasternodeList(), CheckSignature(), CMasternodePing(), GetHash(), CMasternode::GetInfo(), IsExpired(), CMasternode::IsPingedWithin(), masternodebroadcast(), masternodelist(), CActiveMasternode::SendMasternodePing(), SerializationOp(), CMasternodeMan::SetMasternodeLastPing(), Sign(), SimpleCheck(), and MasternodeList::updateNodeList().
std::vector<unsigned char> CMasternodePing::vchSig {} |
Definition at line 38 of file masternode.h.
Referenced by CheckSignature(), masternodebroadcast(), SerializationOp(), and Sign().
CTxIn CMasternodePing::vin {} |
Definition at line 35 of file masternode.h.
Referenced by CheckAndUpdate(), CheckSignature(), CMasternodePing(), GetHash(), masternodebroadcast(), operator==(), SerializationOp(), CMasternodeMan::SetMasternodeLastPing(), Sign(), and SimpleCheck().