![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include "miner.h"
#include "amount.h"
#include "chain.h"
#include "chainparams.h"
#include "coins.h"
#include "consensus/consensus.h"
#include "consensus/merkle.h"
#include "consensus/validation.h"
#include "hash.h"
#include "validation.h"
#include "net.h"
#include "policy/policy.h"
#include "pow.h"
#include "primitives/transaction.h"
#include "script/standard.h"
#include "timedata.h"
#include "txmempool.h"
#include "util.h"
#include "utilmoneystr.h"
#include "masternode-payments.h"
#include "masternode-sync.h"
#include "validationinterface.h"
#include <boost/thread.hpp>
#include <boost/tuple/tuple.hpp>
#include <queue>
Go to the source code of this file.
Classes | |
class | ScoreCompare |
Functions | |
int64_t | UpdateTime (CBlockHeader *pblock, const Consensus::Params &consensusParams, const CBlockIndex *pindexPrev) |
CBlockTemplate * | CreateNewBlock (const CChainParams &chainparams, const CScript &scriptPubKeyIn) |
void | IncrementExtraNonce (CBlock *pblock, const CBlockIndex *pindexPrev, unsigned int &nExtraNonce) |
static bool | ProcessBlockFound (const CBlock *pblock, const CChainParams &chainparams) |
static void | BitcoinMiner (const CChainParams &chainparams, CConnman &connman) |
void | GenerateBitcoins (bool fGenerate, int nThreads, const CChainParams &chainparams, CConnman &connman) |
Variables | |
uint64_t | nLastBlockTx = 0 |
uint64_t | nLastBlockSize = 0 |
|
static |
Definition at line 403 of file miner.cpp.
Referenced by GenerateBitcoins().
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().
|
static |
Definition at line 380 of file miner.cpp.
Referenced by BitcoinMiner().
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().
uint64_t nLastBlockSize = 0 |
Definition at line 49 of file miner.cpp.
Referenced by CreateNewBlock(), and getmininginfo().
uint64_t nLastBlockTx = 0 |
Definition at line 48 of file miner.cpp.
Referenced by CreateNewBlock(), and getmininginfo().