Merge pull request #5648
2ce63d3
MOVEONLY: Move struct CBlockTemplate to miner.h (from main.h) (Luke Dashjr)
This commit is contained in:
commit
7810a0a1e6
3 changed files with 8 additions and 16 deletions
12
src/main.h
12
src/main.h
|
@ -45,7 +45,6 @@ class CScriptCheck;
|
||||||
class CValidationInterface;
|
class CValidationInterface;
|
||||||
class CValidationState;
|
class CValidationState;
|
||||||
|
|
||||||
struct CBlockTemplate;
|
|
||||||
struct CNodeStateStats;
|
struct CNodeStateStats;
|
||||||
|
|
||||||
/** Default for -blockmaxsize and -blockminsize, which control the range of sizes the mining code will create **/
|
/** Default for -blockmaxsize and -blockminsize, which control the range of sizes the mining code will create **/
|
||||||
|
@ -513,17 +512,6 @@ extern CCoinsViewCache *pcoinsTip;
|
||||||
/** Global variable that points to the active block tree (protected by cs_main) */
|
/** Global variable that points to the active block tree (protected by cs_main) */
|
||||||
extern CBlockTreeDB *pblocktree;
|
extern CBlockTreeDB *pblocktree;
|
||||||
|
|
||||||
struct CBlockTemplate
|
|
||||||
{
|
|
||||||
CBlock block;
|
|
||||||
std::vector<CAmount> vTxFees;
|
|
||||||
std::vector<int64_t> vTxSigOps;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class CValidationInterface {
|
class CValidationInterface {
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#include "miner.h"
|
#include "miner.h"
|
||||||
|
|
||||||
#include "amount.h"
|
#include "amount.h"
|
||||||
#include "primitives/block.h"
|
|
||||||
#include "primitives/transaction.h"
|
#include "primitives/transaction.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
11
src/miner.h
11
src/miner.h
|
@ -6,16 +6,21 @@
|
||||||
#ifndef BITCOIN_MINER_H
|
#ifndef BITCOIN_MINER_H
|
||||||
#define BITCOIN_MINER_H
|
#define BITCOIN_MINER_H
|
||||||
|
|
||||||
|
#include "primitives/block.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
class CBlock;
|
|
||||||
class CBlockHeader;
|
|
||||||
class CBlockIndex;
|
class CBlockIndex;
|
||||||
class CReserveKey;
|
class CReserveKey;
|
||||||
class CScript;
|
class CScript;
|
||||||
class CWallet;
|
class CWallet;
|
||||||
|
|
||||||
struct CBlockTemplate;
|
struct CBlockTemplate
|
||||||
|
{
|
||||||
|
CBlock block;
|
||||||
|
std::vector<CAmount> vTxFees;
|
||||||
|
std::vector<int64_t> vTxSigOps;
|
||||||
|
};
|
||||||
|
|
||||||
/** Run the miner threads */
|
/** Run the miner threads */
|
||||||
void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads);
|
void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads);
|
||||||
|
|
Loading…
Reference in a new issue