Skip to content

Commit 7a2068a

Browse files
committed
seeds: Pull nodes from virtu's crawler
Pull additional nodes from virtu's crawler. Data includes sufficient Onion and I2P nodes to align the uptime requirements for these networks to that of clearnet nodes (i.e., 50%). Data also includes more than three times the number of CJDNS nodes currently hardcoded into nodes_main_manual.txt, so hardcoded nodes becomes obsolete.
1 parent 37cdb5f commit 7a2068a

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

contrib/seeds/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ and remove old versions as necessary (at a minimum when SeedsServiceFlags()
88
changes its default return value, as those are the services which seeds are added
99
to addrman with).
1010

11-
The seeds compiled into the release are created from sipa's and achow101's DNS seed and AS map
12-
data. Run the following commands from the `/contrib/seeds` directory:
11+
The seeds compiled into the release are created from sipa's and achow101's DNS seed,
12+
virtu's crawler, and fjahr's community AS map data. Run the following commands from the
13+
`/contrib/seeds` directory:
1314

1415
```
1516
curl https://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
1617
curl https://mainnet.achownodes.xyz/seeds.txt.gz | gzip -dc >> seeds_main.txt
1718
curl https://testnet.achownodes.xyz/seeds.txt.gz | gzip -dc > seeds_test.txt
19+
curl https://21.ninja/seeds.txt.gz | gzip -dc >> seeds_main.txt
1820
curl https://raw.githubusercontent.com/fjahr/asmap-data/main/latest_asmap.dat > asmap-filled.dat
1921
python3 makeseeds.py -a asmap-filled.dat -s seeds_main.txt > nodes_main.txt
20-
cat nodes_main_manual.txt >> nodes_main.txt
2122
python3 makeseeds.py -a asmap-filled.dat -s seeds_test.txt > nodes_test.txt
2223
# TODO: Uncomment when a seeder publishes seeds.txt.gz for testnet4
2324
# python3 makeseeds.py -a asmap-filled.dat -s seeds_testnet4.txt -m 30000 > nodes_testnet4.txt

contrib/seeds/makeseeds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,12 @@ def main():
230230
# Require service bit 1.
231231
ips = [ip for ip in ips if (ip['service'] & 1) == 1]
232232
print(f'{ip_stats(ips):s} Require service bit 1', file=sys.stderr)
233-
# Require at least 50% 30-day uptime for clearnet, 10% for onion and i2p.
233+
# Require at least 50% 30-day uptime for clearnet, onion and i2p; 10% for cjdns
234234
req_uptime = {
235235
'ipv4': 50,
236236
'ipv6': 50,
237-
'onion': 10,
238-
'i2p' : 10,
237+
'onion': 50,
238+
'i2p': 50,
239239
'cjdns': 10,
240240
}
241241
ips = [ip for ip in ips if ip['uptime'] > req_uptime[ip['net']]]

contrib/seeds/nodes_main_manual.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)