PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
CMasternodePing Class Reference

#include <masternode.h>

Inheritance diagram for CMasternodePing:
[legend]
Collaboration diagram for CMasternodePing:
[legend]

Public Member Functions

 CMasternodePing ()
 
 CMasternodePing (const CTxIn &newVin, const uint256 &nBlockHash, uint64_t _sigTime)
 
 SERIALIZE_METHODS (CMasternodePing, obj)
 
uint256 GetHash () const
 
uint256 GetSignatureHash () const override
 
std::string GetStrMessage () const override
 
const CTxIn GetVin () const
 
bool IsNull () const
 
bool CheckAndUpdate (int &nDos, bool fRequireAvailable=true, bool fCheckSigTimeOnly=false)
 
void Relay ()
 
CMasternodePingoperator= (const CMasternodePing &other)=default
 
- Public Member Functions inherited from CSignedMessage
 CSignedMessage ()
 
virtual ~CSignedMessage ()
 
bool Sign (const CKey &key, const CKeyID &keyID)
 CSignedMessage Class Functions inherited by network signed-messages. More...
 
bool Sign (const std::string strSignKey)
 
bool CheckSignature (const CKeyID &keyID) const
 
void SetVchSig (const std::vector< unsigned char > &vchSigIn)
 
std::vector< unsigned char > GetVchSig () const
 
std::string GetSignatureBase64 () const
 
bool Sign (const CBLSSecretKey &sk)
 
bool CheckSignature (const CBLSPublicKey &pk) const
 

Public Attributes

CTxIn vin
 
uint256 blockHash
 
int64_t sigTime
 
- Public Attributes inherited from CSignedMessage
int nMessVersion
 

Friends

bool operator== (const CMasternodePing &a, const CMasternodePing &b)
 
bool operator!= (const CMasternodePing &a, const CMasternodePing &b)
 

Additional Inherited Members

- Protected Attributes inherited from CSignedMessage
std::vector< unsigned char > vchSig
 

Detailed Description

Definition at line 41 of file masternode.h.

Constructor & Destructor Documentation

◆ CMasternodePing() [1/2]

CMasternodePing::CMasternodePing ( )

Definition at line 489 of file masternode.cpp.

◆ CMasternodePing() [2/2]

CMasternodePing::CMasternodePing ( const CTxIn newVin,
const uint256 nBlockHash,
uint64_t  _sigTime 
)

Definition at line 496 of file masternode.cpp.

Member Function Documentation

◆ CheckAndUpdate()

bool CMasternodePing::CheckAndUpdate ( int &  nDos,
bool  fRequireAvailable = true,
bool  fCheckSigTimeOnly = false 
)

Definition at line 517 of file masternode.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetHash()

uint256 CMasternodePing::GetHash ( ) const

Definition at line 503 of file masternode.cpp.

Here is the caller graph for this function:

◆ GetSignatureHash()

uint256 CMasternodePing::GetSignatureHash ( ) const
inlineoverridevirtual

Implements CSignedMessage.

Definition at line 56 of file masternode.h.

Here is the call graph for this function:

◆ GetStrMessage()

std::string CMasternodePing::GetStrMessage ( ) const
overridevirtual

Implements CSignedMessage.

Definition at line 512 of file masternode.cpp.

Here is the call graph for this function:

◆ GetVin()

const CTxIn CMasternodePing::GetVin ( ) const
inline

Definition at line 58 of file masternode.h.

◆ IsNull()

bool CMasternodePing::IsNull ( ) const
inline

Definition at line 59 of file masternode.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

CMasternodePing& CMasternodePing::operator= ( const CMasternodePing other)
default

◆ Relay()

void CMasternodePing::Relay ( )

Definition at line 607 of file masternode.cpp.

Here is the call graph for this function:

◆ SERIALIZE_METHODS()

CMasternodePing::SERIALIZE_METHODS ( CMasternodePing  ,
obj   
)
inline

Definition at line 51 of file masternode.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const CMasternodePing a,
const CMasternodePing b 
)
friend

Definition at line 70 of file masternode.h.

◆ operator==

bool operator== ( const CMasternodePing a,
const CMasternodePing b 
)
friend

Definition at line 66 of file masternode.h.

Member Data Documentation

◆ blockHash

uint256 CMasternodePing::blockHash

Definition at line 45 of file masternode.h.

◆ sigTime

int64_t CMasternodePing::sigTime

Definition at line 46 of file masternode.h.

◆ vin

CTxIn CMasternodePing::vin

Definition at line 44 of file masternode.h.


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