Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
miner.h
Go to the documentation of this file.
188 bool SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_transaction_set &mapModifiedTx, CTxMemPool::setEntries &failedTx);
190 void SortForBlock(const CTxMemPool::setEntries& package, CTxMemPool::txiter entry, std::vector<CTxMemPool::txiter>& sortedEntries);
194 int UpdatePackagesForAdded(const CTxMemPool::setEntries& alreadyAdded, indexed_modified_transaction_set &mapModifiedTx);
198 void IncrementExtraNonce(CBlock* pblock, const CBlockIndex* pindexPrev, unsigned int& nExtraNonce);
199 int64_t UpdateTime(CBlockHeader* pblock, const Consensus::Params& consensusParams, const CBlockIndex* pindexPrev);
void operator()(CTxMemPoolModifiedEntry &e)
Definition: miner.h:115
indexed_modified_transaction_set::nth_index< 0 >::type::iterator modtxiter
Definition: miner.h:108
bool TestPackageTransactions(const CTxMemPool::setEntries &package)
Perform checks on each transaction in a package: locktime These checks should always succeed...
Definition: miner.cpp:276
Definition: miner.h:38
void SortForBlock(const CTxMemPool::setEntries &package, CTxMemPool::txiter entry, std::vector< CTxMemPool::txiter > &sortedEntries)
Sort the package in an order that is valid to appear in a block.
Definition: miner.cpp:349
Definition: block.h:72
bool operator()(const CTxMemPool::txiter &a, const CTxMemPool::txiter &b) const
Definition: miner.h:65
Definition: miner.h:82
void onlyUnconfirmed(CTxMemPool::setEntries &testSet)
Remove confirmed (inBlock) entries from given set.
Definition: miner.cpp:251
std::unique_ptr< CBlockTemplate > pblocktemplate
Definition: miner.h:130
std::set< txiter, CompareIteratorByHash > setEntries
Definition: txmempool.h:499
CChainParams defines various tweakable parameters of a given instance of the Dash system...
Definition: chainparams.h:41
Definition: txmempool.h:494
std::vector< CTxOut > voutMasternodePayments
Definition: miner.h:32
Definition: miner.h:71
Definition: params.h:13
indexed_modified_transaction_set::index< ancestor_score >::type::iterator modtxscoreiter
Definition: miner.h:109
boost::multi_index_container< CTxMemPoolModifiedEntry, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< modifiedentry_iter, CompareCTxMemPoolIter >, boost::multi_index::ordered_non_unique< boost::multi_index::tag< ancestor_score >, boost::multi_index::identity< CTxMemPoolModifiedEntry >, CompareTxMemPoolEntryByAncestorFee > >> indexed_modified_transaction_set
Definition: miner.h:106
Definition: miner.h:111
update_for_parent_inclusion(CTxMemPool::txiter it)
Definition: miner.h:113
std::unique_ptr< CBlockTemplate > CreateNewBlock(const CScript &scriptPubKeyIn)
Construct a new block template with coinbase to scriptPubKeyIn.
Definition: miner.cpp:119
int UpdatePackagesForAdded(const CTxMemPool::setEntries &alreadyAdded, indexed_modified_transaction_set &mapModifiedTx)
Add descendants of given transactions to mapModifiedTx with ancestor state updated assuming given tra...
Definition: miner.cpp:307
int64_t UpdateTime(CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev)
Definition: miner.cpp:59
indexed_transaction_set::nth_index< 0 >::type::iterator txiter
Definition: txmempool.h:491
Definition: miner.h:151
uint64_t GetSizeWithAncestors() const
Definition: miner.h:48
bool SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_transaction_set &mapModifiedTx, CTxMemPool::setEntries &failedTx)
Return true if given transaction from mapTx has already been evaluated, or if the transaction's cache...
Definition: miner.cpp:343
std::vector< CTxOut > voutSuperblockPayments
Definition: miner.h:33
The block chain is a tree shaped structure starting with the genesis block at the root...
Definition: chain.h:170
const CChainParams & Params()
Return the currently selected parameters.
Definition: chainparams.cpp:947
Definition: miner.h:26
unsigned int nSigOpCountWithAncestors
Definition: miner.h:56
CAmount GetModFeesWithAncestors() const
Definition: miner.h:49
void resetBlock()
Clear the block's state and prepare for assembling a new block.
Definition: miner.cpp:106
CTxMemPoolModifiedEntry(CTxMemPool::txiter entry)
Definition: miner.h:39
void addPackageTxs(int &nPackagesSelected, int &nDescendantsUpdated)
Add transactions based on feerate including unconfirmed ancestors Increments nPackagesSelected / nDes...
Definition: miner.cpp:370
bool operator()(const CTxMemPool::txiter &a, const CTxMemPool::txiter &b) const
Definition: miner.h:83
void IncrementExtraNonce(CBlock *pblock, const CBlockIndex *pindexPrev, unsigned int &nExtraNonce)
Modify the extranonce in a block.
Definition: miner.cpp:499
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:198
result_type operator()(const CTxMemPoolModifiedEntry &entry) const
Definition: miner.h:73
bool TestPackage(uint64_t packageSize, unsigned int packageSigOps) const
Test if a new package would "fit" in the block.
Definition: miner.cpp:264
Nodes collect new transactions into a block, hash them into a hash tree, and scan through nonce value...
Definition: block.h:20