Skip to content

contrib: make DNS seeds file an argument in CLI (makeseeds) - #26701

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
brunoerg:2022-12-seeds-improv
Feb 7, 2023
Merged

maflcko merged 1 commit into
bitcoin:masterfrom
brunoerg:2022-12-seeds-improv

Conversation

@brunoerg

@brunoerg brunoerg commented Dec 14, 2022 •

Copy link
Copy Markdown
Contributor

Instead of using makeseeds.py this way:

python3 makeseeds.py -a asmap-filled.dat < seeds_main.txt > nodes_main.txt

We could use the DNS seeds file as an argument since it is a required one. It improves the way the script handles it when that file is missing as well as makes this script more friendly.
E.g:

python3 makeseeds.py -a asmap-filled.dat -s seeds_main.txt > nodes_main.txt

@DrahtBot

DrahtBot commented Dec 14, 2022 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK vincenzopalazzo

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@vincenzopalazzo vincenzopalazzo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fdb3bd5

@maflcko

maflcko commented Dec 19, 2022

Copy link
Copy Markdown
Member

In theory the arg could be optional and fallback to stdin, but not sure if it is worth it. In either case, the commits should be squashed.

@brunoerg

Copy link
Copy Markdown
Contributor Author

Force-pushed squashing the commits. Thanks, @MarcoFalke

@vincenzopalazzo vincenzopalazzo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 1c07500

@maflcko
maflcko merged commit 5a80086 into bitcoin:master Feb 7, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants