#include <masternode-payments.h>
|
| | CMasternodePayments () |
| |
| void | Clear () |
| |
| void | UpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) override |
| | Notifies listeners when the block chain tip advances. More...
|
| |
| void | AddWinningMasternode (CMasternodePaymentWinner &winner) |
| |
| void | ProcessBlock (int nBlockHeight) |
| |
| void | Sync (CNode *node, int nCountNeeded) |
| |
| void | CleanPaymentList (int mnCount, int nHeight) |
| |
| bool | GetMasternodeTxOuts (const CBlockIndex *pindexPrev, std::vector< CTxOut > &voutMasternodePaymentsRet) const |
| |
| bool | GetLegacyMasternodeTxOut (int nHeight, std::vector< CTxOut > &voutMasternodePaymentsRet) const |
| |
| bool | GetBlockPayee (int nBlockHeight, CScript &payee) const |
| |
| bool | IsTransactionValid (const CTransaction &txNew, const CBlockIndex *pindexPrev) |
| |
| bool | IsScheduled (const CMasternode &mn, int nNotBlockHeight) |
| |
| bool | ProcessMNWinner (CMasternodePaymentWinner &winner, CNode *pfrom, CValidationState &state) |
| |
| bool | ProcessMessageMasternodePayments (CNode *pfrom, std::string &strCommand, CDataStream &vRecv, CValidationState &state) |
| |
| std::string | GetRequiredPaymentsString (int nBlockHeight) |
| |
| void | FillBlockPayee (CMutableTransaction &txCoinbase, CMutableTransaction &txCoinstake, const CBlockIndex *pindexPrev, bool fProofOfStake) const |
| |
| std::string | ToString () const |
| |
| | SERIALIZE_METHODS (CMasternodePayments, obj) |
| |
| virtual | ~CValidationInterface ()=default |
| |
| virtual void | AcceptedBlockHeader (const CBlockIndex *pindexNew) |
| |
Definition at line 206 of file masternode-payments.h.
◆ CMasternodePayments()
| CMasternodePayments::CMasternodePayments |
( |
| ) |
|
|
inline |
◆ AddWinningMasternode()
◆ CanVote()
| bool CMasternodePayments::CanVote |
( |
const COutPoint & |
outMasternode, |
|
|
int |
nBlockHeight |
|
) |
| const |
|
private |
◆ CleanPaymentList()
| void CMasternodePayments::CleanPaymentList |
( |
int |
mnCount, |
|
|
int |
nHeight |
|
) |
| |
◆ Clear()
| void CMasternodePayments::Clear |
( |
| ) |
|
|
inline |
◆ FillBlockPayee()
◆ GetBlockPayee()
| bool CMasternodePayments::GetBlockPayee |
( |
int |
nBlockHeight, |
|
|
CScript & |
payee |
|
) |
| const |
◆ GetLegacyMasternodeTxOut()
| bool CMasternodePayments::GetLegacyMasternodeTxOut |
( |
int |
nHeight, |
|
|
std::vector< CTxOut > & |
voutMasternodePaymentsRet |
|
) |
| const |
◆ GetMasternodeTxOuts()
| bool CMasternodePayments::GetMasternodeTxOuts |
( |
const CBlockIndex * |
pindexPrev, |
|
|
std::vector< CTxOut > & |
voutMasternodePaymentsRet |
|
) |
| const |
◆ GetRequiredPaymentsString()
| std::string CMasternodePayments::GetRequiredPaymentsString |
( |
int |
nBlockHeight | ) |
|
◆ IsScheduled()
| bool CMasternodePayments::IsScheduled |
( |
const CMasternode & |
mn, |
|
|
int |
nNotBlockHeight |
|
) |
| |
◆ IsTransactionValid()
◆ ProcessBlock()
| void CMasternodePayments::ProcessBlock |
( |
int |
nBlockHeight | ) |
|
◆ ProcessMessageMasternodePayments()
◆ ProcessMNWinner()
◆ RecordWinnerVote()
| void CMasternodePayments::RecordWinnerVote |
( |
const COutPoint & |
outMasternode, |
|
|
int |
nBlockHeight |
|
) |
| |
|
private |
◆ SERIALIZE_METHODS()
◆ Sync()
| void CMasternodePayments::Sync |
( |
CNode * |
node, |
|
|
int |
nCountNeeded |
|
) |
| |
◆ ToString()
| std::string CMasternodePayments::ToString |
( |
| ) |
const |
◆ UpdatedBlockTip()
| void CMasternodePayments::UpdatedBlockTip |
( |
const CBlockIndex * |
pindexNew, |
|
|
const CBlockIndex * |
pindexFork, |
|
|
bool |
fInitialDownload |
|
) |
| |
|
overridevirtual |
Notifies listeners when the block chain tip advances.
When multiple blocks are connected at once, UpdatedBlockTip will be called on the final tip but may not be called on every intermediate tip. If the latter behavior is desired, subscribe to BlockConnected() instead.
Called on a background thread.
Reimplemented from CValidationInterface.
Definition at line 701 of file masternode-payments.cpp.
◆ mapMasternodeBlocks
◆ mapMasternodePayeeVotes
◆ mapMasternodesLastVote
| std::map<COutPoint, int> CMasternodePayments::mapMasternodesLastVote |
|
private |
◆ nLastBlockHeight
| int CMasternodePayments::nLastBlockHeight |
|
private |
The documentation for this class was generated from the following files: