1 minor finding · 1 suggestion
Findings
[minor] · Mainnet seed regeneration retains previous input
Rerunning the recipe with an existing seeds_main.txt can carry stale records into regenerated fixed seeds, although no affected maintainer checkout or release has been identified.
Location: contrib/seeds/README.md:18 (head).
Details and suggested fix
The removed 21.ninja download was the only command that truncated the gitignored seeds_main.txt; the remaining download still uses >>. makeseeds.py reads the whole file and deduplicates only matching (ip, port) observations. Endpoints absent from the new export can survive, and fresh records with good=0 are discarded before they can replace old successful records. Retained records that still pass the block, service, uptime, agent and selection filters face no lastsuccess age check, so they can reach nodes_main.txt and then chainparamsseeds.h. A clean directory is unaffected, and updated block or agent requirements and review of the generated diff can limit the impact. Change the mainnet download's redirect to > to restore per-run replacement, matching the other networks.
Optional improvements
[suggestion] · Single-source regeneration lacks an explicit per-network count check
A future achownodes export that omits a network could leave the mainnet regeneration without those fixed seeds; existing counts are printed, but the recipe never asks the maintainer to compare them.
Location: contrib/seeds/README.md:13 (head).
Details and suggested fix
makeseeds.py draws onion, I2P and CJDNS records from the same input and caps their counts without requiring any to exist. generate-seeds.py accepts that reduced list, so a crawler-side omission can reach the generated header. Add a README step to compare the final per-network counts already printed by makeseeds.py against the previous committed nodes_main.txt, and investigate missing networks or substantial drops before generating the header. This gives the single-source recipe an explicit check while preserving the appropriate removal of the stale source, without depending on an unconfirmed replacement crawler.