![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include "activemasternode.h"
#include "governance-classes.h"
#include "masternode-payments.h"
#include "masternode-sync.h"
#include "masternodeman.h"
#include "messagesigner.h"
#include "netfulfilledman.h"
#include "spork.h"
#include "util.h"
#include <boost/lexical_cast.hpp>
Go to the source code of this file.
Functions | |
bool | IsBlockValueValid (const CBlock &block, int nBlockHeight, CAmount blockReward, std::string &strErrorRet) |
TODO: all 4 functions do not belong here really, they should be refactored/moved somewhere (main.cpp ?) More... | |
bool | IsBlockPayeeValid (const CTransaction &txNew, int nBlockHeight, CAmount blockReward) |
void | FillBlockPayments (CMutableTransaction &txNew, int nBlockHeight, CAmount blockReward, CTxOut &txoutMasternodeRet, std::vector< CTxOut > &voutSuperblockRet) |
std::string | GetRequiredPaymentsString (int nBlockHeight) |
Variables | |
CMasternodePayments | mnpayments |
CCriticalSection | cs_vecPayees |
CCriticalSection | cs_mapMasternodeBlocks |
CCriticalSection | cs_mapMasternodePaymentVotes |
void FillBlockPayments | ( | CMutableTransaction & | txNew, |
int | nBlockHeight, | ||
CAmount | blockReward, | ||
CTxOut & | txoutMasternodeRet, | ||
std::vector< CTxOut > & | voutSuperblockRet | ||
) |
Definition at line 210 of file masternode-payments.cpp.
Referenced by CreateNewBlock().
std::string GetRequiredPaymentsString | ( | int | nBlockHeight | ) |
Definition at line 227 of file masternode-payments.cpp.
Referenced by masternode().
bool IsBlockPayeeValid | ( | const CTransaction & | txNew, |
int | nBlockHeight, | ||
CAmount | blockReward | ||
) |
Definition at line 132 of file masternode-payments.cpp.
Referenced by ConnectBlock().
bool IsBlockValueValid | ( | const CBlock & | block, |
int | nBlockHeight, | ||
CAmount | blockReward, | ||
std::string & | strErrorRet | ||
) |
TODO: all 4 functions do not belong here really, they should be refactored/moved somewhere (main.cpp ?)
IsBlockValueValid
Determine if coinbase outgoing created money is the correct value
Why is this needed?
Definition at line 35 of file masternode-payments.cpp.
Referenced by ConnectBlock().
CCriticalSection cs_mapMasternodeBlocks |
Definition at line 21 of file masternode-payments.cpp.
Referenced by CMasternodePayments::AddPaymentVote(), CMasternodePayments::CheckAndRemove(), CMasternodePayments::CheckPreviousBlockVotes(), CMasternodePayments::Clear(), CMasternodePayments::GetRequiredPaymentsString(), CMasternodePayments::IsScheduled(), CMasternodePayments::IsTransactionValid(), ProcessGetData(), CMasternodePayments::RequestLowDataPaymentBlocks(), CMasternodePayments::Sync(), and CMasternode::UpdateLastPaid().
CCriticalSection cs_mapMasternodePaymentVotes |
Definition at line 22 of file masternode-payments.cpp.
Referenced by CMasternodePayments::AddPaymentVote(), CMasternodePayments::CanVote(), CMasternodePayments::CheckAndRemove(), CMasternodePayments::CheckPreviousBlockVotes(), CMasternodePayments::Clear(), CMasternodePayments::HasVerifiedPaymentVote(), and CMasternodePayments::ProcessMessage().
CCriticalSection cs_vecPayees |
CMasternodePayments mnpayments |
Object for who's going to get paid on which blocks
Definition at line 18 of file masternode-payments.cpp.
Referenced by AlreadyHave(), AppInit2(), CMasternode::Check(), ComputeBlockVersion(), CMasternodeMan::CountEnabled(), CMasternodeMan::CountMasternodes(), CMasternodePayments::FillBlockPayee(), FillBlockPayments(), CMasternodeMan::FindRandomNotInVec(), CMasternodeMan::GetNextMasternodeInQueueForPayment(), GetRequiredPaymentsString(), IsBlockPayeeValid(), CMasternodePaymentVote::IsValid(), PrepareShutdown(), ProcessGetData(), ProcessMessage(), CMasternodeSync::ProcessTick(), CMasternodePaymentVote::Relay(), CMasternodeBroadcast::SimpleCheck(), ThreadCheckPrivateSend(), CDSNotificationInterface::UpdatedBlockTip(), CMasternodeMan::UpdateLastPaid(), and CMasternode::UpdateLastPaid().