Skip to content

Commit fabd05b

Browse files
author
MarcoFalke
committed
refactor: Fix net_processing iwyu includes
1 parent fa1622d commit fabd05b

File tree

2 files changed

+50
-7
lines changed

2 files changed

+50
-7
lines changed

src/net_processing.cpp

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,87 @@
11
// Copyright (c) 2009-2010 Satoshi Nakamoto
2-
// Copyright (c) 2009-2022 The Bitcoin Core developers
2+
// Copyright (c) 2009-present The Bitcoin Core developers
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

66
#include <net_processing.h>
77

88
#include <addrman.h>
9+
#include <arith_uint256.h>
910
#include <banman.h>
1011
#include <blockencodings.h>
1112
#include <blockfilter.h>
13+
#include <chain.h>
1214
#include <chainparams.h>
15+
#include <common/bloom.h>
1316
#include <consensus/amount.h>
17+
#include <consensus/params.h>
1418
#include <consensus/validation.h>
19+
#include <core_memusage.h>
20+
#include <crypto/siphash.h>
1521
#include <deploymentstatus.h>
16-
#include <hash.h>
22+
#include <flatfile.h>
1723
#include <headerssync.h>
1824
#include <index/blockfilterindex.h>
1925
#include <kernel/chain.h>
20-
#include <kernel/mempool_entry.h>
2126
#include <logging.h>
2227
#include <merkleblock.h>
28+
#include <net.h>
29+
#include <net_permissions.h>
30+
#include <netaddress.h>
2331
#include <netbase.h>
2432
#include <netmessagemaker.h>
2533
#include <node/blockstorage.h>
34+
#include <node/connection_types.h>
35+
#include <node/protocol_version.h>
2636
#include <node/timeoffsets.h>
2737
#include <node/txdownloadman.h>
2838
#include <node/txreconciliation.h>
2939
#include <node/warnings.h>
40+
#include <policy/feerate.h>
3041
#include <policy/fees.h>
42+
#include <policy/packages.h>
3143
#include <policy/policy.h>
32-
#include <policy/settings.h>
3344
#include <primitives/block.h>
3445
#include <primitives/transaction.h>
46+
#include <protocol.h>
3547
#include <random.h>
3648
#include <scheduler.h>
49+
#include <script/script.h>
50+
#include <serialize.h>
51+
#include <span.h>
3752
#include <streams.h>
3853
#include <sync.h>
3954
#include <tinyformat.h>
4055
#include <txmempool.h>
4156
#include <txorphanage.h>
42-
#include <txrequest.h>
57+
#include <uint256.h>
4358
#include <util/check.h>
4459
#include <util/strencodings.h>
4560
#include <util/time.h>
4661
#include <util/trace.h>
4762
#include <validation.h>
4863

4964
#include <algorithm>
65+
#include <array>
5066
#include <atomic>
67+
#include <compare>
68+
#include <cstddef>
69+
#include <deque>
70+
#include <exception>
71+
#include <functional>
5172
#include <future>
73+
#include <initializer_list>
74+
#include <iterator>
75+
#include <limits>
76+
#include <list>
77+
#include <map>
5278
#include <memory>
5379
#include <optional>
80+
#include <queue>
5481
#include <ranges>
82+
#include <ratio>
83+
#include <set>
84+
#include <span>
5585
#include <typeinfo>
5686
#include <utility>
5787

src/net_processing.h

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
// Copyright (c) 2009-2010 Satoshi Nakamoto
2-
// Copyright (c) 2009-2022 The Bitcoin Core developers
2+
// Copyright (c) 2009-present The Bitcoin Core developers
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

66
#ifndef BITCOIN_NET_PROCESSING_H
77
#define BITCOIN_NET_PROCESSING_H
88

9+
#include <consensus/amount.h>
910
#include <net.h>
11+
#include <protocol.h>
12+
#include <threadsafety.h>
1013
#include <txorphanage.h>
1114
#include <validationinterface.h>
1215

16+
#include <atomic>
1317
#include <chrono>
18+
#include <cstdint>
19+
#include <memory>
20+
#include <optional>
21+
#include <string>
22+
#include <vector>
1423

1524
class AddrMan;
16-
class CChainParams;
1725
class CTxMemPool;
1826
class ChainstateManager;
27+
class BanMan;
28+
class CBlockIndex;
29+
class CScheduler;
30+
class DataStream;
31+
class uint256;
1932

2033
namespace node {
2134
class Warnings;

0 commit comments

Comments
 (0)