Commit dbc89b6
committed
Merge bitcoin/bitcoin#31960: seeds: add signet/testnet4, update makeseeds regex, minblocks, fixed seeds
f0b6597 seeds: update .gitignore with signet and testnet4 (Jon Atack)
48f07ac chainparams: remove hardcoded signet seeds (Jon Atack)
d4ab115 chainparams: add signet fixed seeds if default network (Jon Atack)
49f155e seeds: update fixed dns seeds (Jon Atack)
2366870 makeseeds: regex improvements (Lőrinc)
98f84d6 generate-seeds: update and add signet (Jon Atack)
c4ed23e seeds: add testnet4 seeds (Jon Atack)
60f17dd seeds: add signet seeds (Jon Atack)
2bcccaa makeseeds: align I2P column header (Jon Atack)
94e21aa makeseeds: update MIN_BLOCKS, add reminder to README (Jon Atack)
6ae7a3b makeseeds: update user agent regex (Jon Atack)
9b0d2e5 makeseeds: fix incorrect regex (laanwj)
Pull request description:
In `makeseeds.py`:
- fix the user agent regex (by laanwj)
- fix the I2P column header spacing
- update the regex (it was also not updated for the previous release)
- update `MIN_BLOCKS` (4320 blocks/month * ~6.5 months) and add README documentation to remember to update it
- further robustness/standardness/consistency improvements to the regexes (by l0rinc)
Add signet and testnet4 seeds to the README and to `generate-seeds.py`
Update the fixed seeds in `src/chainparamsseeds.h`
In `kernel/chainparams.cpp`:
- add signet fixed seeds if default network
- remove hardcoded signet seeds
Update `contrib/seeds/.gitignore` with signet and testnet4
The previous 2 seeds updates were bitcoin/bitcoin#30008 and bitcoin/bitcoin#30695.
mainnet:
```
$ contrib/seeds$ python3 makeseeds.py -a asmap-filled.dat -s seeds_main.txt > nodes_main.txt
Loading asmap database "asmap-filled.dat"…Done.
Loading and parsing DNS seeds…Done.
IPv4 IPv6 Onion I2P CJDNS Pass
17252 3630 21079 3095 12 Initial
17252 3630 21079 3095 12 Skip entries with invalid address
8444 1742 14607 2330 10 After removing duplicates
8194 1691 14321 2102 10 Enforce minimal number of blocks
7838 1578 14321 2102 10 Require service bit 1
6802 1326 14321 2102 10 Require minimum uptime
6762 1321 14320 2102 10 Require a known and recent user agent
6762 1321 14320 2102 10 Filter out hosts with multiple bitcoin ports
512 485 512 512 10 Look up ASNs and limit results per ASN and per net
```
signet:
```
$ contrib/seeds$ python3 makeseeds.py -a asmap-filled.dat -s seeds_signet.txt -m 237800 > nodes_signet.txt
Loading asmap database "asmap-filled.dat"…Done.
Loading and parsing DNS seeds…Done.
IPv4 IPv6 Onion I2P CJDNS Pass
110 47 63 9 4 Initial
110 47 63 9 4 Skip entries with invalid address
110 47 63 9 4 After removing duplicates
83 31 58 9 4 Enforce minimal number of blocks
83 31 58 9 4 Require service bit 1
83 31 57 9 4 Require minimum uptime
83 31 57 9 4 Require a known and recent user agent
83 31 57 7 4 Filter out hosts with multiple bitcoin ports
42 30 57 7 4 Look up ASNs and limit results per ASN and per net
```
testnet:
```
$ contrib/seeds$ python3 makeseeds.py -a asmap-filled.dat -s seeds_test.txt > nodes_test.txt
Loading asmap database "asmap-filled.dat"…Done.
Loading and parsing DNS seeds…Done.
IPv4 IPv6 Onion I2P CJDNS Pass
204 73 96 11 5 Initial
204 73 96 11 5 Skip entries with invalid address
204 73 96 11 5 After removing duplicates
204 73 96 11 5 Enforce minimal number of blocks
204 73 96 11 5 Require service bit 1
195 69 87 9 5 Require minimum uptime
193 69 87 9 5 Require a known and recent user agent
193 69 87 9 5 Filter out hosts with multiple bitcoin ports
79 39 87 9 5 Look up ASNs and limit results per ASN and per net
```
testnet4
```
$ contrib/seeds$ python3 makeseeds.py -a asmap-filled.dat -s seeds_testnet4.txt -m 72600 > nodes_testnet4.txt
Loading asmap database "asmap-filled.dat"…Done.
Loading and parsing DNS seeds…Done.
IPv4 IPv6 Onion I2P CJDNS Pass
149 115 69 11 4 Initial
149 115 69 11 4 Skip entries with invalid address
149 115 69 11 4 After removing duplicates
104 75 52 7 4 Enforce minimal number of blocks
104 75 52 7 4 Require service bit 1
100 73 51 7 4 Require minimum uptime
100 73 51 7 4 Require a known and recent user agent
100 73 51 7 4 Filter out hosts with multiple bitcoin ports
43 46 51 7 4 Look up ASNs and limit results per ASN and per net
```
ACKs for top commit:
l0rinc:
I have mostly reviewed the regexes, for the rest it's only a very lightweight ACK f0b6597
achow101:
ACK f0b6597
laanwj:
re-ACK f0b6597
Tree-SHA512: 86f4ea247469dbb3f131f2de884e470fbf93f399744d4854fcc26511afafcec231d7eaed37f8564244bc64d917d130b314d948aa97b13020613f8e186c70e368File tree
10 files changed
+4070
-3731
lines changed- contrib/seeds
- src
- kernel
10 files changed
+4070
-3731
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
3 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
| 27 | + | |
23 | 28 | | |
24 | | - | |
25 | | - | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments