diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-07 09:50:59 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-17 16:25:31 +0200 |
commit | fa5760880094c4e4238249f6d1837cd74383cc3a (patch) | |
tree | dc5db2975db25bcb76bf98ec8ec8a7049a1242ce /src/txmempool.h | |
parent | 6ce5e8f4758e6fccf59b3980af417ec6c75e383e (diff) | |
download | bitcoin-fa5760880094c4e4238249f6d1837cd74383cc3a.tar.xz |
Remove unused includes from txmempool.h
... and move them to where they are really needed.
This was found by IWYU:
txmempool.h should remove these lines:
- #include <random.h> // lines 29-29
- class CBlockIndex; // lines 43-43
- class Chainstate; // lines 45-45
Also, move the stdlib section to the right place. Can be reviewed with:
--color-moved=dimmed-zebra
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 4d7d53ff68..afaaf0d4d6 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -6,15 +6,6 @@ #ifndef BITCOIN_TXMEMPOOL_H #define BITCOIN_TXMEMPOOL_H -#include <atomic> -#include <map> -#include <optional> -#include <set> -#include <string> -#include <string_view> -#include <utility> -#include <vector> - #include <kernel/mempool_limits.h> #include <kernel/mempool_options.h> @@ -26,7 +17,6 @@ #include <policy/feerate.h> #include <policy/packages.h> #include <primitives/transaction.h> -#include <random.h> #include <sync.h> #include <util/epochguard.h> #include <util/hasher.h> @@ -40,9 +30,16 @@ #include <boost/multi_index/tag.hpp> #include <boost/multi_index_container.hpp> -class CBlockIndex; +#include <atomic> +#include <map> +#include <optional> +#include <set> +#include <string> +#include <string_view> +#include <utility> +#include <vector> + class CChain; -class Chainstate; /** Fake height value used in Coin to signify they are only in the memory pool (since 0.8) */ static const uint32_t MEMPOOL_HEIGHT = 0x7FFFFFFF; |