PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
CMasternodePing Class Reference

#include <masternode.h>

Collaboration diagram for CMasternodePing:
[legend]

Public Member Functions

 CMasternodePing ()
 
 CMasternodePing (CTxIn &newVin)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
bool CheckAndUpdate (int &nDos, bool fRequireEnabled=true, bool fCheckSigTimeOnly=false)
 
bool Sign (CKey &keyMasternode, CPubKey &pubKeyMasternode)
 
bool VerifySignature (CPubKey &pubKeyMasternode, int &nDos)
 
void Relay ()
 
uint256 GetHash ()
 
void swap (CMasternodePing &first, CMasternodePing &second)
 
CMasternodePingoperator= (CMasternodePing from)
 

Public Attributes

CTxIn vin
 
uint256 blockHash
 
int64_t sigTime
 
std::vector< unsigned char > vchSig
 
 ADD_SERIALIZE_METHODS
 

Friends

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

Detailed Description

Definition at line 39 of file masternode.h.

Constructor & Destructor Documentation

◆ CMasternodePing() [1/2]

CMasternodePing::CMasternodePing ( )

Definition at line 738 of file masternode.cpp.

◆ CMasternodePing() [2/2]

CMasternodePing::CMasternodePing ( CTxIn newVin)

Definition at line 746 of file masternode.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ CheckAndUpdate()

bool CMasternodePing::CheckAndUpdate ( int &  nDos,
bool  fRequireEnabled = true,
bool  fCheckSigTimeOnly = false 
)
Todo:
: or should we also request this block?

Definition at line 789 of file masternode.cpp.

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

◆ GetHash()

uint256 CMasternodePing::GetHash ( )
inline

Definition at line 67 of file masternode.h.

Here is the caller graph for this function:

◆ operator=()

CMasternodePing& CMasternodePing::operator= ( CMasternodePing  from)
inline

Definition at line 88 of file masternode.h.

Here is the call graph for this function:

◆ Relay()

void CMasternodePing::Relay ( )

Definition at line 872 of file masternode.cpp.

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

◆ SerializationOp()

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

Definition at line 54 of file masternode.h.

◆ Sign()

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

Definition at line 755 of file masternode.cpp.

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

◆ swap()

void CMasternodePing::swap ( CMasternodePing first,
CMasternodePing second 
)
inline

Definition at line 75 of file masternode.h.

Here is the caller graph for this function:

◆ VerifySignature()

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

Definition at line 777 of file masternode.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 97 of file masternode.h.

◆ operator==

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

Definition at line 93 of file masternode.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CMasternodePing::ADD_SERIALIZE_METHODS

Definition at line 51 of file masternode.h.

◆ blockHash

uint256 CMasternodePing::blockHash

Definition at line 43 of file masternode.h.

◆ sigTime

int64_t CMasternodePing::sigTime

Definition at line 44 of file masternode.h.

◆ vchSig

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

Definition at line 45 of file masternode.h.

◆ vin

CTxIn CMasternodePing::vin

Definition at line 42 of file masternode.h.


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