PIVX Core  5.6.99
P2P Digital Currency
Functions | Variables
masternode-payments.cpp File Reference
#include "masternode-payments.h"
#include "chainparams.h"
#include "evo/deterministicmns.h"
#include "fs.h"
#include "budget/budgetmanager.h"
#include "masternodeman.h"
#include "netmessagemaker.h"
#include "tiertwo/netfulfilledman.h"
#include "spork.h"
#include "sync.h"
#include "tiertwo/tiertwo_sync_state.h"
#include "util/system.h"
#include "utilmoneystr.h"
#include "validation.h"
Include dependency graph for masternode-payments.cpp:

Go to the source code of this file.

Functions

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

Variables

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

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

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

◆ cs_mapMasternodePayeeVotes

RecursiveMutex cs_mapMasternodePayeeVotes

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

◆ cs_vecPayments

RecursiveMutex cs_vecPayments

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

◆ masternodePayments

CMasternodePayments masternodePayments

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

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