Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <primitives/block.h>#include <txmempool.h>#include <stdint.h>#include <memory>#include <boost/multi_index_container.hpp>#include <boost/multi_index/ordered_index.hpp>
Include dependency graph for miner.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | CBlockTemplate |
| struct | CTxMemPoolModifiedEntry |
| struct | CompareCTxMemPoolIter |
| Comparator for CTxMemPool::txiter objects. More... | |
| struct | modifiedentry_iter |
| struct | CompareTxIterByAncestorCount |
| struct | update_for_parent_inclusion |
| class | BlockAssembler |
| Generate a new block, without valid proof-of-work. More... | |
| struct | BlockAssembler::Options |
Namespaces | |
| Consensus | |
Typedefs | |
| typedef 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 |
| typedef indexed_modified_transaction_set::nth_index< 0 >::type::iterator | modtxiter |
| typedef indexed_modified_transaction_set::index< ancestor_score >::type::iterator | modtxscoreiter |
Functions | |
| void | IncrementExtraNonce (CBlock *pblock, const CBlockIndex *pindexPrev, unsigned int &nExtraNonce) |
| Modify the extranonce in a block. More... | |
| int64_t | UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev) |
Variables | |
| static const bool | DEFAULT_PRINTPRIORITY = false |
Typedef Documentation
◆ indexed_modified_transaction_set
| typedef 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 |
◆ modtxiter
| typedef indexed_modified_transaction_set::nth_index<0>::type::iterator modtxiter |
◆ modtxscoreiter
| typedef indexed_modified_transaction_set::index<ancestor_score>::type::iterator modtxscoreiter |
Function Documentation
◆ IncrementExtraNonce()
| void IncrementExtraNonce | ( | CBlock * | pblock, |
| const CBlockIndex * | pindexPrev, | ||
| unsigned int & | nExtraNonce | ||
| ) |
Modify the extranonce in a block.
Definition at line 499 of file miner.cpp.
References BlockMerkleRoot(), COINBASE_FLAGS, CBlockHeader::hashMerkleRoot, CBlockHeader::hashPrevBlock, MakeTransactionRef(), CBlockIndex::nHeight, CMutableTransaction::vin, and CBlock::vtx.
◆ UpdateTime()
| int64_t UpdateTime | ( | CBlockHeader * | pblock, |
| const Consensus::Params & | consensusParams, | ||
| const CBlockIndex * | pindexPrev | ||
| ) |
Definition at line 59 of file miner.cpp.
References Consensus::Params::fPowAllowMinDifficultyBlocks, GetAdjustedTime(), CBlockIndex::GetMedianTimePast(), GetNextWorkRequired(), CBlockHeader::nBits, and CBlockHeader::nTime.
Referenced by BlockAssembler::CreateNewBlock(), and getblocktemplate().
Variable Documentation
◆ DEFAULT_PRINTPRIORITY
|
static |
Definition at line 24 of file miner.h.
Referenced by BlockAssembler::AddToBlock(), and HelpMessage().

