mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Add missing includes and forward declarations, remove unused ones
This commit is contained in:
@@ -6,11 +6,10 @@
|
||||
#define BITCOIN_INDEX_BASE_H
|
||||
|
||||
#include <dbwrapper.h>
|
||||
#include <primitives/block.h>
|
||||
#include <primitives/transaction.h>
|
||||
#include <threadinterrupt.h>
|
||||
#include <validationinterface.h>
|
||||
|
||||
class CBlock;
|
||||
class CBlockIndex;
|
||||
class CChainState;
|
||||
|
||||
|
||||
@@ -16,9 +16,12 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class CBlockFileInfo;
|
||||
class CBlockIndex;
|
||||
class CCoinsViewDBCursor;
|
||||
class uint256;
|
||||
namespace Consensus {
|
||||
struct Params;
|
||||
};
|
||||
|
||||
//! -dbcache default (MiB)
|
||||
static const int64_t nDefaultDbCache = 450;
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
#endif
|
||||
|
||||
#include <amount.h>
|
||||
#include <arith_uint256.h>
|
||||
#include <attributes.h>
|
||||
#include <chain.h>
|
||||
#include <coins.h>
|
||||
#include <consensus/validation.h>
|
||||
#include <crypto/common.h> // for ReadLE64
|
||||
@@ -21,10 +23,11 @@
|
||||
#include <policy/packages.h>
|
||||
#include <protocol.h> // For CMessageHeader::MessageStartChars
|
||||
#include <script/script_error.h>
|
||||
#include <sync.h>
|
||||
#include <txmempool.h> // For CTxMemPool::cs
|
||||
#include <txdb.h>
|
||||
#include <serialize.h>
|
||||
#include <sync.h>
|
||||
#include <txdb.h>
|
||||
#include <txmempool.h> // For CTxMemPool::cs
|
||||
#include <uint256.h>
|
||||
#include <util/check.h>
|
||||
#include <util/hasher.h>
|
||||
#include <util/translation.h>
|
||||
@@ -42,7 +45,6 @@
|
||||
|
||||
class CChainState;
|
||||
class BlockValidationState;
|
||||
class CBlockIndex;
|
||||
class CBlockTreeDB;
|
||||
class CBlockUndo;
|
||||
class CChainParams;
|
||||
|
||||
Reference in New Issue
Block a user