Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contrib/seeds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ from the `/contrib/seeds` directory:
curl https://bitcoin.sipa.be/seeds.txt.gz | gzip -dc > seeds_main.txt
curl https://21.ninja/seeds.txt.gz | gzip -dc >> seeds_main.txt
curl https://luke.dashjr.org/programs/bitcoin/files/charts/seeds.txt >> seeds_main.txt
curl https://haf.ovh/seed.txt >> seeds_main.txt
curl https://mainnet.achownodes.xyz/seeds.txt.gz | gzip -dc >> seeds_main.txt
curl https://signet.achownodes.xyz/seeds.txt.gz | gzip -dc > seeds_signet.txt
curl https://testnet.achownodes.xyz/seeds.txt.gz | gzip -dc > seeds_test.txt
Expand Down
9 changes: 6 additions & 3 deletions contrib/seeds/makeseeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
r"|26\.(0|1|2|99)\.0"
r"|27\.(0|1|2|99)\.0"
r"|28\.(0|1|99)\.0"
r"|29\.(0|1|2|99)\.0"
r"|30\.(0|99)\.0"
r")")

def parseline(line: str) -> Union[dict, None]:
Expand Down Expand Up @@ -227,9 +229,10 @@ def main():
# Enforce minimal number of blocks.
ips = [ip for ip in ips if ip['blocks'] >= args.minblocks]
print(f'{ip_stats(ips):s} Enforce minimal number of blocks', file=sys.stderr)
# Require service bit 1.
ips = [ip for ip in ips if (ip['service'] & 1) == 1]
print(f'{ip_stats(ips):s} Require service bit 1', file=sys.stderr)
# Require service bits: NODE_NETWORK (1 << 0), NODE_WITNESS (1 << 3), NODE_UASF_REDUCED_DATA (1 << 27)
required_services = (1 << 0) | (1 << 3) | (1 << 27) # 0x8000009
ips = [ip for ip in ips if (ip['service'] & required_services) == required_services]
print(f'{ip_stats(ips):s} Require service bits: NODE_NETWORK, NODE_WITNESS, NODE_UASF_REDUCED_DATA', file=sys.stderr)
# Require at least 50% 30-day uptime for clearnet, onion and i2p; 10% for cjdns
req_uptime = {
'ipv4': 50,
Expand Down
Loading
Loading