-
Notifications
You must be signed in to change notification settings - Fork 38.7k
rfc: Add -printconfig arg to bitcoind #15493
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
|
Suggested in #15438 (comment). If you concept ACK feel free to suggest other configs to print. |
|
I think we could print :
Why print the block dir since you already print datadir ? |
Because depends on the network. |
|
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. |
|
Concept ACK, but to prevent endless bike shedding, it should just print everything except passwords. |
|
You mean iterate ArgsManager? |
|
Yes, that might be useful to see which options override others. So ideally do this after the parameter interaction stuff. In that case it won't complete if there's a problem, but those problems generally have their own error message which should contain enough information. |
|
concept ACK, it might be completely redundant, but printing explicitly which file is being used as conf would be useful. |
I tend to agree. If you're going to do this, print everything that can be printed, I guess apart from really sensitive options (purely to prevent shoulder surfing, as any user being able to run this will have by definition access to |
|
Concept ACK. |
|
In order to print everything I have to move the default from |
|
Concept ACK |
|
@promag IMO we should probably do that anyway. Perhaps also print it in a format that could be put directly in a bitcoin.conf if so desired? |
| Needs rebase |
|
Concept ACK |
| There hasn't been much activity lately and the patch still needs rebase, so I am closing this for now. Please let me know when you want to continue working on this, so the pull request can be re-opened. |
|
I'll pick this again once flags are settled. |
This PR adds the
-printconfigargument tobitcoind. Like-helpand-version, after printing to the console it exits.Examples: