@@ -109,15 +109,15 @@ class CAddrInfo : public CAddress
109
109
*
110
110
* To that end:
111
111
* * Addresses are organized into buckets.
112
- * * Address that have not yet been tried go into 256 "new" buckets.
113
- * * Based on the address range (/16 for IPv4) of source of the information, 32 buckets are selected at random
112
+ * * Address that have not yet been tried go into 1024 "new" buckets.
113
+ * * Based on the address range (/16 for IPv4) of source of the information, 64 buckets are selected at random
114
114
* * The actual bucket is chosen from one of these, based on the range the address itself is located.
115
- * * One single address can occur in up to 4 different buckets, to increase selection chances for addresses that
115
+ * * One single address can occur in up to 8 different buckets, to increase selection chances for addresses that
116
116
* are seen frequently. The chance for increasing this multiplicity decreases exponentially.
117
117
* * When adding a new address to a full bucket, a randomly chosen entry (with a bias favoring less recently seen
118
118
* ones) is removed from it first.
119
- * * Addresses of nodes that are known to be accessible go into 64 "tried" buckets.
120
- * * Each address range selects at random 4 of these buckets.
119
+ * * Addresses of nodes that are known to be accessible go into 256 "tried" buckets.
120
+ * * Each address range selects at random 8 of these buckets.
121
121
* * The actual bucket is chosen from one of these, based on the full address.
122
122
* * When adding a new good address to a full bucket, a randomly chosen entry (with a bias favoring less recently
123
123
* tried ones) is evicted from it, back to the "new" buckets.
@@ -128,22 +128,22 @@ class CAddrInfo : public CAddress
128
128
*/
129
129
130
130
// ! total number of buckets for tried addresses
131
- #define ADDRMAN_TRIED_BUCKET_COUNT 64
131
+ #define ADDRMAN_TRIED_BUCKET_COUNT 256
132
132
133
133
// ! total number of buckets for new addresses
134
- #define ADDRMAN_NEW_BUCKET_COUNT 256
134
+ #define ADDRMAN_NEW_BUCKET_COUNT 1024
135
135
136
136
// ! maximum allowed number of entries in buckets for new and tried addresses
137
137
#define ADDRMAN_BUCKET_SIZE 64
138
138
139
139
// ! over how many buckets entries with tried addresses from a single group (/16 for IPv4) are spread
140
- #define ADDRMAN_TRIED_BUCKETS_PER_GROUP 4
140
+ #define ADDRMAN_TRIED_BUCKETS_PER_GROUP 8
141
141
142
142
// ! over how many buckets entries with new addresses originating from a single group are spread
143
- #define ADDRMAN_NEW_BUCKETS_PER_SOURCE_GROUP 32
143
+ #define ADDRMAN_NEW_BUCKETS_PER_SOURCE_GROUP 64
144
144
145
145
// ! in how many buckets for entries with new addresses a single address may occur
146
- #define ADDRMAN_NEW_BUCKETS_PER_ADDRESS 4
146
+ #define ADDRMAN_NEW_BUCKETS_PER_ADDRESS 8
147
147
148
148
// ! how old addresses can maximally be
149
149
#define ADDRMAN_HORIZON_DAYS 30
0 commit comments