Skip to content

Commit fab8900

Browse files
author
MarcoFalke
committed
Add missing includes and forward declarations, remove unused ones
1 parent 192a959 commit fab8900

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/index/base.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
#define BITCOIN_INDEX_BASE_H
77

88
#include <dbwrapper.h>
9-
#include <primitives/block.h>
10-
#include <primitives/transaction.h>
119
#include <threadinterrupt.h>
1210
#include <validationinterface.h>
1311

12+
class CBlock;
1413
class CBlockIndex;
1514
class CChainState;
1615

src/txdb.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
#include <utility>
1717
#include <vector>
1818

19+
class CBlockFileInfo;
1920
class CBlockIndex;
20-
class CCoinsViewDBCursor;
2121
class uint256;
22+
namespace Consensus {
23+
struct Params;
24+
};
2225

2326
//! -dbcache default (MiB)
2427
static const int64_t nDefaultDbCache = 450;

src/validation.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
#endif
1212

1313
#include <amount.h>
14+
#include <arith_uint256.h>
1415
#include <attributes.h>
16+
#include <chain.h>
1517
#include <coins.h>
1618
#include <consensus/validation.h>
1719
#include <crypto/common.h> // for ReadLE64
@@ -21,10 +23,11 @@
2123
#include <policy/packages.h>
2224
#include <protocol.h> // For CMessageHeader::MessageStartChars
2325
#include <script/script_error.h>
26+
#include <serialize.h>
2427
#include <sync.h>
25-
#include <txmempool.h> // For CTxMemPool::cs
2628
#include <txdb.h>
27-
#include <serialize.h>
29+
#include <txmempool.h> // For CTxMemPool::cs
30+
#include <uint256.h>
2831
#include <util/check.h>
2932
#include <util/hasher.h>
3033
#include <util/translation.h>
@@ -42,7 +45,6 @@
4245

4346
class CChainState;
4447
class BlockValidationState;
45-
class CBlockIndex;
4648
class CBlockTreeDB;
4749
class CBlockUndo;
4850
class CChainParams;

0 commit comments

Comments
 (0)