File tree Expand file tree Collapse file tree 3 files changed +23
-9
lines changed
Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 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 */
2324static constexpr uint32_t ADDRMAN_TRIED_BUCKETS_PER_GROUP{8 };
Original file line number Diff line number Diff line change 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
2220class AddrManImpl ;
Original file line number Diff line number Diff line change 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 */
924static constexpr int32_t ADDRMAN_TRIED_BUCKET_COUNT_LOG2{8 };
1025static constexpr int ADDRMAN_TRIED_BUCKET_COUNT{1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2};
You can’t perform that action at this time.
0 commit comments