Dash Core  0.12.2.1
P2P Digital Currency
CMasternodeBlockPayees Class Reference

#include <masternode-payments.h>

Public Member Functions

 CMasternodeBlockPayees ()
 
 CMasternodeBlockPayees (int nBlockHeightIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void AddPayee (const CMasternodePaymentVote &vote)
 
bool GetBestPayee (CScript &payeeRet)
 
bool HasPayeeWithVotes (const CScript &payeeIn, int nVotesReq)
 
bool IsTransactionValid (const CTransaction &txNew)
 
std::string GetRequiredPaymentsString ()
 

Public Attributes

int nBlockHeight
 
std::vector< CMasternodePayeevecPayees
 
 ADD_SERIALIZE_METHODS
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CMasternodeBlockPayees() [1/2]

CMasternodeBlockPayees::CMasternodeBlockPayees ( )
inline

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

◆ CMasternodeBlockPayees() [2/2]

CMasternodeBlockPayees::CMasternodeBlockPayees ( int  nBlockHeightIn)
inline

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

Member Function Documentation

◆ AddPayee()

void CMasternodeBlockPayees::AddPayee ( const CMasternodePaymentVote vote)

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

◆ GetBestPayee()

bool CMasternodeBlockPayees::GetBestPayee ( CScript payeeRet)

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

◆ GetRequiredPaymentsString()

std::string CMasternodeBlockPayees::GetRequiredPaymentsString ( )

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

◆ HasPayeeWithVotes()

bool CMasternodeBlockPayees::HasPayeeWithVotes ( const CScript payeeIn,
int  nVotesReq 
)

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

◆ IsTransactionValid()

bool CMasternodeBlockPayees::IsTransactionValid ( const CTransaction txNew)

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

◆ SerializationOp()

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

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

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CMasternodeBlockPayees::ADD_SERIALIZE_METHODS

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

◆ nBlockHeight

int CMasternodeBlockPayees::nBlockHeight

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

Referenced by IsTransactionValid(), and SerializationOp().

◆ vecPayees

std::vector<CMasternodePayee> CMasternodeBlockPayees::vecPayees

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