Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <miner.h>#include <amount.h>#include <chain.h>#include <chainparams.h>#include <coins.h>#include <consensus/consensus.h>#include <consensus/tx_verify.h>#include <consensus/merkle.h>#include <consensus/validation.h>#include <hash.h>#include <validation.h>#include <net.h>#include <policy/feerate.h>#include <policy/policy.h>#include <pow.h>#include <primitives/transaction.h>#include <script/standard.h>#include <timedata.h>#include <util.h>#include <utilmoneystr.h>#include <masternode/masternode-payments.h>#include <masternode/masternode-sync.h>#include <validationinterface.h>#include <evo/specialtx.h>#include <evo/cbtx.h>#include <evo/simplifiedmns.h>#include <evo/deterministicmns.h>#include <llmq/quorums_blockprocessor.h>#include <llmq/quorums_chainlocks.h>#include <algorithm>#include <memory>#include <queue>#include <utility>
Include dependency graph for miner.cpp:Go to the source code of this file.
Functions | |
| int64_t | UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev) |
| static BlockAssembler::Options | DefaultOptions (const CChainParams ¶ms) |
| void | IncrementExtraNonce (CBlock *pblock, const CBlockIndex *pindexPrev, unsigned int &nExtraNonce) |
| Modify the extranonce in a block. More... | |
Variables | |
| uint64_t | nLastBlockTx = 0 |
| uint64_t | nLastBlockSize = 0 |
Function Documentation
◆ DefaultOptions()
|
static |
Definition at line 86 of file miner.cpp.
References BlockAssembler::Options::blockMinFeeRate, DEFAULT_BLOCK_MAX_SIZE, DEFAULT_BLOCK_MIN_TX_FEE, gArgs, ArgsManager::GetArg(), ArgsManager::IsArgSet(), BlockAssembler::Options::nBlockMaxSize, and ParseMoney().
◆ 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
◆ nLastBlockSize
| uint64_t nLastBlockSize = 0 |
Definition at line 57 of file miner.cpp.
Referenced by BlockAssembler::CreateNewBlock(), and getmininginfo().
◆ nLastBlockTx
| uint64_t nLastBlockTx = 0 |
Definition at line 56 of file miner.cpp.
Referenced by BlockAssembler::CreateNewBlock(), and getmininginfo().

