-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Enhance signet chain configuration in bitcoin.conf #30203
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
Enhance signet chain configuration in bitcoin.conf #30203
Conversation
If the -signetchallenge argument is provided, the hash-160 (first 8 characters) of the challenge is appended to the datadir name, resulting in unique data directories for each signet, i.e., signet_XXXXXXX.
- Added a test to verify the Signet data directory when -signetchallenge=51 is correctly set to 'signet_da1745e9'. - Added a test to verify the main Signet data directory is correctly set to 'signet'.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process. 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. |
🚧 At least one of the CI tasks failed. Make sure to run all tests locally, according to the Possibly this is due to a silent merge conflict (the changes in this pull request being Leave a comment here, if you need help tracking down a confusing failure. |
Add helper function to read signet_chain args from config
This enables adding of signet chain configs in bitcoin.conf. This enables running of multiple signets with diffrent configurations i.e chain=signet_xxxx [signet_xxxx] seednodes=x.x.x.x signetchallenge=xxxxxxxxx
1f87975
to
2f762ba
Compare
🐙 This pull request conflicts with the target branch and needs rebase. |
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
1 similar comment
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
|
Closing this given it hasn't received any feedback. I think discussion can continue in (or this branched can be linked to from) #29838. |
!! Draft for feedback on the approach !!
Follow up to #29838 following #29838 (comment) and #29838 (comment)
This PR builds upon the changes introduced in #29838, which enabled the ability to run multiple Signet instances with distinct data directories. Now, it extends this functionality by allowing users to configure Signet chain specifics directly in bitcoin.conf.
Users can define multiple Signet chains by specifying configurations (see below) and specifying which signet chain to run on the chain variable: