Motivation
Many command line parameter and RPC help texts currently contain the list of chain/network names hardcoded (“main, test, testnet4, signet, regtest”), which is error-prone as it can easily happen to miss an instance if the list ever changes again.
Possible solution
For better maintainability, the list should be deduplicated, either with a constant string or a function creating that string like ListChainTypes
. See the suggestions #30642 (review) and #30642 (review).
Useful Skills
- Compiling Bitcoin Core from source
- Basic C++ skills
Guidance for new contributors
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.