-
Notifications
You must be signed in to change notification settings - Fork 37.8k
net: improve and address issues in makeseeds.py #24818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Thanks for working on this. |
ACK after squashing commits. |
Squashed, thanks again for the help reviewing. |
Concept and code review ACK c457fb1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post-merge ACK, modulo suggestions in #24863.
Summary: Backport of [[ bitcoin/bitcoin#24818 | core#24818 ]] This patch increases the number of ipv6 seeds from 2 to 10 per ASN and increases MIN_BLOCKS to 730000. Most of the refactors are not big improvements in clarity but it does bring our code more inline with Bitcoin Core. Test Plan: python3 makeseeds.py < seeds_main.txt > nodes_main.txt python3 makeseeds.py < seeds_test.txt > nodes_test.txt git diff Diff should be more additions than removals and retain most of the old entries. Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Subscribers: Fabien Differential Revision: https://reviews.bitcoinabc.org/D12141
This PR attempts to address some of the areas of improvement raised in #17020 . Concretely, my proposed change is fairly minor but addresses the following changes to
makeseeds.py
:MIN_BLOCKS
to 730000.With the different ASN limits for IPv4 and IPv6, and the new minimum block requirement, the current stats look look like:
The new ASN max seeds of 10 allows for 512 IPv6 addresses to be included, up from the ~150 that was filtered by the previous version.
While there is more to do for #17020 , these changes I think are fairly isolated from the rest and should make it a bit easier for others to get up to speed with what the functions in the script do.