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