Dash Core  0.12.2.1
P2P Digital Currency
CMasternodePing Class Reference

#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
 

Detailed Description

Definition at line 32 of file masternode.h.

Constructor & Destructor Documentation

◆ CMasternodePing() [1/2]

CMasternodePing::CMasternodePing ( )
default

◆ CMasternodePing() [2/2]

CMasternodePing::CMasternodePing ( const COutPoint outpoint)

Definition at line 671 of file masternode.cpp.

Member Function Documentation

◆ CheckAndUpdate()

bool CMasternodePing::CheckAndUpdate ( CMasternode pmn,
bool  fFromNewBroadcast,
int &  nDos,
CConnman connman 
)

Definition at line 743 of file masternode.cpp.

Referenced by CMasternode::UpdateFromNewBroadcast().

◆ CheckSignature()

bool CMasternodePing::CheckSignature ( CPubKey pubKeyMasternode,
int &  nDos 
)

Definition at line 703 of file masternode.cpp.

Referenced by CheckAndUpdate().

◆ GetHash()

uint256 CMasternodePing::GetHash ( ) const
inline

◆ IsExpired()

bool CMasternodePing::IsExpired ( ) const
inline

Definition at line 73 of file masternode.h.

◆ Relay()

void CMasternodePing::Relay ( CConnman connman)

Definition at line 824 of file masternode.cpp.

Referenced by CheckAndUpdate(), and CActiveMasternode::SendMasternodePing().

◆ SerializationOp()

template<typename Stream , typename Operation >
void CMasternodePing::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 50 of file masternode.h.

◆ Sign()

bool CMasternodePing::Sign ( const CKey keyMasternode,
const CPubKey pubKeyMasternode 
)

◆ SimpleCheck()

bool CMasternodePing::SimpleCheck ( int &  nDos)

Definition at line 718 of file masternode.cpp.

Referenced by CheckAndUpdate(), and CMasternodeBroadcast::SimpleCheck().

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CMasternodePing::ADD_SERIALIZE_METHODS

Definition at line 47 of file masternode.h.

◆ blockHash

uint256 CMasternodePing::blockHash {}

◆ fSentinelIsCurrent

bool CMasternodePing::fSentinelIsCurrent = false

◆ nSentinelVersion

uint32_t CMasternodePing::nSentinelVersion {DEFAULT_SENTINEL_VERSION}

◆ sigTime

◆ vchSig

std::vector<unsigned char> CMasternodePing::vchSig {}

Definition at line 38 of file masternode.h.

Referenced by CheckSignature(), masternodebroadcast(), SerializationOp(), and Sign().

◆ vin


The documentation for this class was generated from the following files: