File tree Expand file tree Collapse file tree 2 files changed +10
-16
lines changed Expand file tree Collapse file tree 2 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -53,22 +53,6 @@ static constexpr int32_t DEFAULT_ADDRMAN_CONSISTENCY_CHECKS{0};
53
53
* * Several indexes are kept for high performance. Setting m_consistency_check_ratio with the -checkaddrman
54
54
* configuration option will introduce (expensive) consistency checks for the entire data structure.
55
55
*/
56
-
57
- /* * Total number of buckets for tried addresses */
58
- static constexpr int32_t ADDRMAN_TRIED_BUCKET_COUNT_LOG2{8 };
59
- static constexpr int ADDRMAN_TRIED_BUCKET_COUNT{1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2};
60
-
61
- /* * Total number of buckets for new addresses */
62
- static constexpr int32_t ADDRMAN_NEW_BUCKET_COUNT_LOG2{10 };
63
- static constexpr int ADDRMAN_NEW_BUCKET_COUNT{1 << ADDRMAN_NEW_BUCKET_COUNT_LOG2};
64
-
65
- /* * Maximum allowed number of entries in buckets for new and tried addresses */
66
- static constexpr int32_t ADDRMAN_BUCKET_SIZE_LOG2{6 };
67
- static constexpr int ADDRMAN_BUCKET_SIZE{1 << ADDRMAN_BUCKET_SIZE_LOG2};
68
-
69
- /* *
70
- * Stochastical (IP) address manager
71
- */
72
56
class CAddrMan
73
57
{
74
58
const std::unique_ptr<AddrManImpl> m_impl;
Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_ADDRMAN_IMPL_H
6
6
#define BITCOIN_ADDRMAN_IMPL_H
7
7
8
+ /* * Total number of buckets for tried addresses */
9
+ static constexpr int32_t ADDRMAN_TRIED_BUCKET_COUNT_LOG2{8 };
10
+ static constexpr int ADDRMAN_TRIED_BUCKET_COUNT{1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2};
11
+ /* * Total number of buckets for new addresses */
12
+ static constexpr int32_t ADDRMAN_NEW_BUCKET_COUNT_LOG2{10 };
13
+ static constexpr int ADDRMAN_NEW_BUCKET_COUNT{1 << ADDRMAN_NEW_BUCKET_COUNT_LOG2};
14
+ /* * Maximum allowed number of entries in buckets for new and tried addresses */
15
+ static constexpr int32_t ADDRMAN_BUCKET_SIZE_LOG2{6 };
16
+ static constexpr int ADDRMAN_BUCKET_SIZE{1 << ADDRMAN_BUCKET_SIZE_LOG2};
17
+
8
18
/* *
9
19
* Extended statistics about a CAddress
10
20
*/
You can’t perform that action at this time.
0 commit comments