You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use different datadirs for different signets #27494
This brings up a related issue in that we can't have multiple signets in the same base datadir. All signets use the signet datadir, so any change of parameter may result in a bad chainstate for that signet node.
I think we should instead look at implementing a more robust multiple signet solution that allows for multiple configurable consensus rules in a clean and simple way since clearly that's desired. Ideally we would have a single parameter that contains all of the rules being configured rather than having multiple for each rule. We should also make datadirs specific to each set of rules, ideally in a deterministic way.
An option might be to name the chain dir signet-XXXXXXXX instead of signet where the XXs are the pchMessageStart, or perhaps to have ~40 XXs instead of 8 and have them be the hash160 of the signet challenge?
This looks like a breaking change, so one could carve out the current global default signet to keep the current folder name. Though, for other signets this breaking change seems fine.
Reacted by Anthony Towns, emre, Henrytech9, kalle and ek
We're students at UT Austin looking for an issue to work on for our course project. We are interested in this issue and aim to raise PR and get it approved within a month. We will appreciate your help.
I plan to start with the initialization files and work my way through the files to change any references to the block directory depending on if it is a signet chain. and also plan on making it backwards compatible. Any help would be appreciated, just mention me if you have any ideas or contributions! :)
Activity
ajtowns commentedon Apr 19, 2023
cc @achow101 @kallewoof
An option might be to name the chain dir
signet-XXXXXXXXinstead ofsignetwhere theXXs are thepchMessageStart, or perhaps to have ~40XXs instead of 8 and have them be the hash160 of the signet challenge?maflcko commentedon Apr 19, 2023
This looks like a breaking change, so one could carve out the current global default signet to keep the current folder name. Though, for other signets this breaking change seems fine.
theartpiece commentedon Oct 25, 2023
Hi
We're students at UT Austin looking for an issue to work on for our course project. We are interested in this issue and aim to raise PR and get it approved within a month. We will appreciate your help.
Regards
maflcko commentedon Oct 25, 2023
Useful Skills
Guidance for new contributors
Want to work on this issue?
For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.
moawnallah commentedon Dec 12, 2023
Hey, @theartpiece, Are you still working on this issue? If not, I’d like to pick it up. Thanks
jsarenik commentedon Jan 29, 2024
I think that following scripts are related and may serve as an inspiration while keeping backward-compatibility.
bch.sh
For bitcoin-cli, this is bch.sh ("bitcoin cli here")
bdh.sh
Following is bdh.sh (“bitcoin daemon here")
Usage
HTH
InsanityMatrix commentedon Jan 29, 2024
Hey, as I haven't seen this being tackled I will happily undertake it. Currently working on it at https://github.com/InsanityMatrix/bitcoin on branch "signet-datadir-changes"
I plan to start with the initialization files and work my way through the files to change any references to the block directory depending on if it is a signet chain. and also plan on making it backwards compatible. Any help would be appreciated, just mention me if you have any ideas or contributions! :)
Merge bitcoin#34566: feature: Use different datadirs for different si…