![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
Go to the source code of this file.
Classes | |
struct | CBlockTemplate |
Namespaces | |
Consensus | |
Functions | |
void | GenerateBitcoins (bool fGenerate, int nThreads, const CChainParams &chainparams, CConnman &connman) |
CBlockTemplate * | CreateNewBlock (const CChainParams &chainparams, const CScript &scriptPubKeyIn) |
void | IncrementExtraNonce (CBlock *pblock, const CBlockIndex *pindexPrev, unsigned int &nExtraNonce) |
int64_t | UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev) |
Variables | |
static const bool | DEFAULT_GENERATE = false |
static const int | DEFAULT_GENERATE_THREADS = 1 |
static const bool | DEFAULT_PRINTPRIORITY = false |
CBlockTemplate* CreateNewBlock | ( | const CChainParams & | chainparams, |
const CScript & | scriptPubKeyIn | ||
) |
Generate a new block, without valid proof-of-work
Definition at line 77 of file miner.cpp.
Referenced by BitcoinMiner(), generate(), and getblocktemplate().
void GenerateBitcoins | ( | bool | fGenerate, |
int | nThreads, | ||
const CChainParams & | chainparams, | ||
CConnman & | connman | ||
) |
Run the miner threads
Definition at line 524 of file miner.cpp.
Referenced by AppInit2(), PrepareShutdown(), and setgenerate().
void IncrementExtraNonce | ( | CBlock * | pblock, |
const CBlockIndex * | pindexPrev, | ||
unsigned int & | nExtraNonce | ||
) |
Modify the extranonce in a block
Definition at line 322 of file miner.cpp.
Referenced by BitcoinMiner(), and generate().
int64_t UpdateTime | ( | CBlockHeader * | pblock, |
const Consensus::Params & | consensusParams, | ||
const CBlockIndex * | pindexPrev | ||
) |
Definition at line 62 of file miner.cpp.
Referenced by BitcoinMiner(), CreateNewBlock(), and getblocktemplate().
|
static |
Definition at line 21 of file miner.h.
Referenced by AppInit2(), getgenerate(), and HelpMessage().
|
static |
Definition at line 22 of file miner.h.
Referenced by AppInit2(), getmininginfo(), HelpMessage(), and setgenerate().
|
static |
Definition at line 24 of file miner.h.
Referenced by CreateNewBlock(), and HelpMessage().