PIVX Core  5.6.99
P2P Digital Currency
Classes | Macros | Functions | Variables
masternode-payments.h File Reference
#include "key.h"
#include "masternode.h"
#include "validationinterface.h"
Include dependency graph for masternode-payments.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMasternodePaymentDB
 Save Masternode Payment Data (mnpayments.dat) More...
 
class  CMasternodePayee
 
class  CMasternodeBlockPayees
 
class  CMasternodePaymentWinner
 
class  CMasternodePayments
 

Macros

#define MNPAYMENTS_SIGNATURES_REQUIRED   6
 
#define MNPAYMENTS_SIGNATURES_TOTAL   10
 

Functions

bool IsBlockPayeeValid (const CBlock &block, const CBlockIndex *pindexPrev)
 
std::string GetRequiredPaymentsString (int nBlockHeight)
 
bool IsBlockValueValid (int nHeight, CAmount &nExpectedValue, CAmount nMinted, CAmount &nBudgetAmt)
 
void FillBlockPayee (CMutableTransaction &txCoinbase, CMutableTransaction &txCoinstake, const CBlockIndex *pindexPrev, bool fProofOfStake)
 
bool IsCoinbaseValueValid (const CTransactionRef &tx, CAmount nBudgetAmt, CValidationState &_state)
 Check coinbase output value for blocks after v6.0 enforcement. More...
 
void DumpMasternodePayments ()
 

Variables

RecursiveMutex cs_vecPayments
 
RecursiveMutex cs_mapMasternodeBlocks
 
RecursiveMutex cs_mapMasternodePayeeVotes
 
CMasternodePayments masternodePayments
 Object for who's going to get paid on which blocks. More...
 

Macro Definition Documentation

◆ MNPAYMENTS_SIGNATURES_REQUIRED

#define MNPAYMENTS_SIGNATURES_REQUIRED   6

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

◆ MNPAYMENTS_SIGNATURES_TOTAL

#define MNPAYMENTS_SIGNATURES_TOTAL   10

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

Function Documentation

◆ DumpMasternodePayments()

void DumpMasternodePayments ( )

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

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

◆ FillBlockPayee()

void FillBlockPayee ( CMutableTransaction txCoinbase,
CMutableTransaction txCoinstake,
const CBlockIndex pindexPrev,
bool  fProofOfStake 
)

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

Here is the call graph for this function:

◆ GetRequiredPaymentsString()

std::string GetRequiredPaymentsString ( int  nBlockHeight)

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

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

◆ IsBlockPayeeValid()

bool IsBlockPayeeValid ( const CBlock block,
const CBlockIndex pindexPrev 
)

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

Here is the call graph for this function:

◆ IsBlockValueValid()

bool IsBlockValueValid ( int  nHeight,
CAmount nExpectedValue,
CAmount  nMinted,
CAmount nBudgetAmt 
)

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

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

◆ IsCoinbaseValueValid()

bool IsCoinbaseValueValid ( const CTransactionRef tx,
CAmount  nBudgetAmt,
CValidationState _state 
)

Check coinbase output value for blocks after v6.0 enforcement.

It must pay the masternode for regular blocks and a proposal during superblocks.

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

Here is the call graph for this function:

Variable Documentation

◆ cs_mapMasternodeBlocks

RecursiveMutex cs_mapMasternodeBlocks
extern

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

◆ cs_mapMasternodePayeeVotes

RecursiveMutex cs_mapMasternodePayeeVotes
extern

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

◆ cs_vecPayments

RecursiveMutex cs_vecPayments
extern

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

◆ masternodePayments

CMasternodePayments masternodePayments
extern

Object for who's going to get paid on which blocks.

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