aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-01-20 17:34:30 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-01-20 17:34:43 +0100
commit7810a0a1e6fc4088694a45b5c86493a47d5c7c8a (patch)
treeb8f8ce111e156e728d22eee8d56ae32fa8cc89a9
parent848f55d52fe2f7143f9ccfa5ab8bd82c098a7b6d (diff)
parent2ce63d395fe3d71e921ecd9f4263031b25efa14e (diff)
Merge pull request #5648
2ce63d3 MOVEONLY: Move struct CBlockTemplate to miner.h (from main.h) (Luke Dashjr)
-rw-r--r--src/main.h12
-rw-r--r--src/miner.cpp1
-rw-r--r--src/miner.h11
3 files changed, 8 insertions, 16 deletions
diff --git a/src/main.h b/src/main.h
index 2b260a665b..a7360d2f70 100644
--- a/src/main.h
+++ b/src/main.h
@@ -45,7 +45,6 @@ class CScriptCheck;
class CValidationInterface;
class CValidationState;
-struct CBlockTemplate;
struct CNodeStateStats;
/** 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) */
extern CBlockTreeDB *pblocktree;
-struct CBlockTemplate
-{
- CBlock block;
- std::vector<CAmount> vTxFees;
- std::vector<int64_t> vTxSigOps;
-};
-
-
-
-
-
class CValidationInterface {
protected:
diff --git a/src/miner.cpp b/src/miner.cpp
index 87cb158333..cc97d16f0f 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -6,7 +6,6 @@
#include "miner.h"
#include "amount.h"
-#include "primitives/block.h"
#include "primitives/transaction.h"
#include "hash.h"
#include "main.h"
diff --git a/src/miner.h b/src/miner.h
index 3c08b030f6..593ddcd371 100644
--- a/src/miner.h
+++ b/src/miner.h
@@ -6,16 +6,21 @@
#ifndef BITCOIN_MINER_H
#define BITCOIN_MINER_H
+#include "primitives/block.h"
+
#include <stdint.h>
-class CBlock;
-class CBlockHeader;
class CBlockIndex;
class CReserveKey;
class CScript;
class CWallet;
-struct CBlockTemplate;
+struct CBlockTemplate
+{
+ CBlock block;
+ std::vector<CAmount> vTxFees;
+ std::vector<int64_t> vTxSigOps;
+};
/** Run the miner threads */
void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads);