|
6 | 6 | #include <net_processing.h> |
7 | 7 |
|
8 | 8 | #include <addrman.h> |
| 9 | +#include <arith_uint256.h> |
9 | 10 | #include <banman.h> |
10 | 11 | #include <blockencodings.h> |
11 | 12 | #include <blockfilter.h> |
| 13 | +#include <chain.h> |
12 | 14 | #include <chainparams.h> |
| 15 | +#include <common/bloom.h> |
13 | 16 | #include <consensus/amount.h> |
| 17 | +#include <consensus/params.h> |
14 | 18 | #include <consensus/validation.h> |
| 19 | +#include <core_memusage.h> |
| 20 | +#include <crypto/siphash.h> |
15 | 21 | #include <deploymentstatus.h> |
16 | | -#include <hash.h> |
| 22 | +#include <flatfile.h> |
17 | 23 | #include <headerssync.h> |
18 | 24 | #include <index/blockfilterindex.h> |
19 | 25 | #include <kernel/chain.h> |
20 | | -#include <kernel/mempool_entry.h> |
21 | 26 | #include <logging.h> |
22 | 27 | #include <merkleblock.h> |
| 28 | +#include <net.h> |
| 29 | +#include <net_permissions.h> |
| 30 | +#include <netaddress.h> |
23 | 31 | #include <netbase.h> |
24 | 32 | #include <netmessagemaker.h> |
25 | 33 | #include <node/blockstorage.h> |
| 34 | +#include <node/connection_types.h> |
| 35 | +#include <node/protocol_version.h> |
26 | 36 | #include <node/timeoffsets.h> |
27 | 37 | #include <node/txdownloadman.h> |
28 | 38 | #include <node/txreconciliation.h> |
29 | 39 | #include <node/warnings.h> |
| 40 | +#include <policy/feerate.h> |
30 | 41 | #include <policy/fees.h> |
| 42 | +#include <policy/packages.h> |
31 | 43 | #include <policy/policy.h> |
32 | | -#include <policy/settings.h> |
33 | 44 | #include <primitives/block.h> |
34 | 45 | #include <primitives/transaction.h> |
| 46 | +#include <protocol.h> |
35 | 47 | #include <random.h> |
36 | 48 | #include <scheduler.h> |
| 49 | +#include <script/script.h> |
| 50 | +#include <serialize.h> |
| 51 | +#include <span.h> |
37 | 52 | #include <streams.h> |
38 | 53 | #include <sync.h> |
39 | 54 | #include <tinyformat.h> |
40 | 55 | #include <txmempool.h> |
41 | 56 | #include <txorphanage.h> |
42 | | -#include <txrequest.h> |
| 57 | +#include <uint256.h> |
43 | 58 | #include <util/check.h> |
44 | 59 | #include <util/strencodings.h> |
45 | 60 | #include <util/time.h> |
46 | 61 | #include <util/trace.h> |
47 | 62 | #include <validation.h> |
48 | 63 |
|
49 | 64 | #include <algorithm> |
| 65 | +#include <array> |
50 | 66 | #include <atomic> |
| 67 | +#include <compare> |
| 68 | +#include <cstddef> |
| 69 | +#include <deque> |
| 70 | +#include <exception> |
| 71 | +#include <functional> |
51 | 72 | #include <future> |
| 73 | +#include <initializer_list> |
| 74 | +#include <iterator> |
| 75 | +#include <limits> |
| 76 | +#include <list> |
| 77 | +#include <map> |
52 | 78 | #include <memory> |
53 | 79 | #include <optional> |
| 80 | +#include <queue> |
54 | 81 | #include <ranges> |
| 82 | +#include <ratio> |
| 83 | +#include <set> |
| 84 | +#include <span> |
55 | 85 | #include <typeinfo> |
56 | 86 | #include <utility> |
57 | 87 |
|
@@ -1156,7 +1186,7 @@ void PeerManagerImpl::RemoveBlockRequest(const uint256& hash, std::optional<Node |
1156 | 1186 | Assume(mapBlocksInFlight.count(hash) <= MAX_CMPCTBLOCKS_INFLIGHT_PER_BLOCK); |
1157 | 1187 |
|
1158 | 1188 | while (range.first != range.second) { |
1159 | | - auto [node_id, list_it] = range.first->second; |
| 1189 | + const auto& [node_id, list_it]{range.first->second}; |
1160 | 1190 |
|
1161 | 1191 | if (from_peer && *from_peer != node_id) { |
1162 | 1192 | range.first++; |
|
0 commit comments