Skip to content

Commit 3c263d3

Browse files
committed
[includes] Fix up included files
1 parent 29727c2 commit 3c263d3

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

src/addrman.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@
66
#include <addrman.h>
77
#include <addrman_impl.h>
88

9-
#include <clientversion.h>
109
#include <hash.h>
11-
#include <logging.h>
1210
#include <netaddress.h>
11+
#include <protocol.h>
12+
#include <random.h>
1313
#include <serialize.h>
1414
#include <streams.h>
15+
#include <timedata.h>
16+
#include <tinyformat.h>
17+
#include <uint256.h>
1518
#include <util/check.h>
1619

1720
#include <cmath>
1821
#include <optional>
19-
#include <unordered_map>
20-
#include <unordered_set>
2122

2223
/** Over how many buckets entries with tried addresses from a single group (/16 for IPv4) are spread */
2324
static constexpr uint32_t ADDRMAN_TRIED_BUCKETS_PER_GROUP{8};

src/addrman.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@
66
#ifndef BITCOIN_ADDRMAN_H
77
#define BITCOIN_ADDRMAN_H
88

9-
#include <fs.h>
10-
#include <logging.h>
119
#include <netaddress.h>
1210
#include <protocol.h>
13-
#include <sync.h>
11+
#include <streams.h>
1412
#include <timedata.h>
1513

1614
#include <cstdint>
15+
#include <memory>
1716
#include <optional>
18-
#include <set>
19-
#include <unordered_map>
17+
#include <utility>
2018
#include <vector>
2119

2220
class AddrManImpl;

src/addrman_impl.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@
55
#ifndef BITCOIN_ADDRMAN_IMPL_H
66
#define BITCOIN_ADDRMAN_IMPL_H
77

8+
#include <logging.h>
9+
#include <netaddress.h>
10+
#include <protocol.h>
11+
#include <serialize.h>
12+
#include <sync.h>
13+
#include <uint256.h>
14+
15+
#include <cstdint>
16+
#include <optional>
17+
#include <set>
18+
#include <unordered_map>
19+
#include <unordered_set>
20+
#include <utility>
21+
#include <vector>
22+
823
/** Total number of buckets for tried addresses */
924
static constexpr int32_t ADDRMAN_TRIED_BUCKET_COUNT_LOG2{8};
1025
static constexpr int ADDRMAN_TRIED_BUCKET_COUNT{1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2};

0 commit comments

Comments
 (0)