Dash Core  0.12.2.1
P2P Digital Currency
CMasternodePaymentVote Class Reference

#include <masternode-payments.h>

Public Member Functions

 CMasternodePaymentVote ()
 
 CMasternodePaymentVote (COutPoint outpointMasternode, int nBlockHeight, CScript payee)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
uint256 GetHash () const
 
bool Sign ()
 
bool CheckSignature (const CPubKey &pubKeyMasternode, int nValidationHeight, int &nDos)
 
bool IsValid (CNode *pnode, int nValidationHeight, std::string &strError, CConnman &connman)
 
void Relay (CConnman &connman)
 
bool IsVerified ()
 
void MarkAsNotVerified ()
 
std::string ToString () const
 

Public Attributes

CTxIn vinMasternode
 
int nBlockHeight
 
CScript payee
 
std::vector< unsigned char > vchSig
 
 ADD_SERIALIZE_METHODS
 

Detailed Description

Definition at line 109 of file masternode-payments.h.

Constructor & Destructor Documentation

◆ CMasternodePaymentVote() [1/2]

CMasternodePaymentVote::CMasternodePaymentVote ( )
inline

Definition at line 118 of file masternode-payments.h.

◆ CMasternodePaymentVote() [2/2]

CMasternodePaymentVote::CMasternodePaymentVote ( COutPoint  outpointMasternode,
int  nBlockHeight,
CScript  payee 
)
inline

Definition at line 125 of file masternode-payments.h.

Member Function Documentation

◆ CheckSignature()

bool CMasternodePaymentVote::CheckSignature ( const CPubKey pubKeyMasternode,
int  nValidationHeight,
int &  nDos 
)

Definition at line 851 of file masternode-payments.cpp.

◆ GetHash()

uint256 CMasternodePaymentVote::GetHash ( ) const
inline

◆ IsValid()

bool CMasternodePaymentVote::IsValid ( CNode pnode,
int  nValidationHeight,
std::string &  strError,
CConnman connman 
)

Definition at line 655 of file masternode-payments.cpp.

◆ IsVerified()

bool CMasternodePaymentVote::IsVerified ( )
inline

Definition at line 156 of file masternode-payments.h.

◆ MarkAsNotVerified()

void CMasternodePaymentVote::MarkAsNotVerified ( )
inline

Definition at line 157 of file masternode-payments.h.

◆ Relay()

void CMasternodePaymentVote::Relay ( CConnman connman)

Definition at line 842 of file masternode-payments.cpp.

◆ SerializationOp()

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

Definition at line 135 of file masternode-payments.h.

◆ Sign()

bool CMasternodePaymentVote::Sign ( )

Definition at line 416 of file masternode-payments.cpp.

◆ ToString()

std::string CMasternodePaymentVote::ToString ( ) const

Definition at line 874 of file masternode-payments.cpp.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CMasternodePaymentVote::ADD_SERIALIZE_METHODS

Definition at line 132 of file masternode-payments.h.

◆ nBlockHeight

◆ payee

CScript CMasternodePaymentVote::payee

◆ vchSig

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

◆ vinMasternode

CTxIn CMasternodePaymentVote::vinMasternode

Definition at line 112 of file masternode-payments.h.

Referenced by CheckSignature(), GetHash(), IsValid(), SerializationOp(), Sign(), and ToString().


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