mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-10 03:23:43 +02:00
Remove internal miner
This code removes the internal miner which is only useful on Testnet. This leaves the internal miner that is useful on RegTest intact.
This commit is contained in:
@@ -17,9 +17,6 @@ class CScript;
|
||||
class CWallet;
|
||||
namespace Consensus { struct Params; };
|
||||
|
||||
static const bool DEFAULT_GENERATE = false;
|
||||
static const int DEFAULT_GENERATE_THREADS = 1;
|
||||
|
||||
static const bool DEFAULT_PRINTPRIORITY = false;
|
||||
|
||||
struct CBlockTemplate
|
||||
@@ -29,8 +26,6 @@ struct CBlockTemplate
|
||||
std::vector<int64_t> vTxSigOps;
|
||||
};
|
||||
|
||||
/** Run the miner threads */
|
||||
void GenerateBitcoins(bool fGenerate, int nThreads, const CChainParams& chainparams);
|
||||
/** Generate a new block, without valid proof-of-work */
|
||||
CBlockTemplate* CreateNewBlock(const CChainParams& chainparams, const CScript& scriptPubKeyIn);
|
||||
/** Modify the extranonce in a block */
|
||||
|
Reference in New Issue
Block a user