diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-08-04 21:04:44 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-08-20 16:55:27 +0200 |
commit | fab89006d656261770503e54fdd01ac9167bdd49 (patch) | |
tree | 3ddc4c998386e63a5d92967d42c9c2319220b255 /src | |
parent | 192a959b65660ffacedb5a5eb2a0d26736c636d7 (diff) | |
download | bitcoin-fab89006d656261770503e54fdd01ac9167bdd49.tar.xz |
Add missing includes and forward declarations, remove unused ones
Diffstat (limited to 'src')
-rw-r--r-- | src/index/base.h | 3 | ||||
-rw-r--r-- | src/txdb.h | 5 | ||||
-rw-r--r-- | src/validation.h | 8 |
3 files changed, 10 insertions, 6 deletions
diff --git a/src/index/base.h b/src/index/base.h index df4bdff1ea..1390e3e570 100644 --- a/src/index/base.h +++ b/src/index/base.h @@ -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; diff --git a/src/txdb.h b/src/txdb.h index 845d80788f..977c83356f 100644 --- a/src/txdb.h +++ b/src/txdb.h @@ -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; diff --git a/src/validation.h b/src/validation.h index b80fa9d328..8d08f4400b 100644 --- a/src/validation.h +++ b/src/validation.h @@ -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 <serialize.h> #include <sync.h> -#include <txmempool.h> // For CTxMemPool::cs #include <txdb.h> -#include <serialize.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; |