Skip to content
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

Custom signets #12

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open

Custom signets #12

wants to merge 31 commits into from

Conversation

jtimon
Copy link
Owner

@jtimon jtimon commented Sep 7, 2019

This is bitcoin#16411 rebased on top of more things of mine.

It also has some commits at the end to further discuss how these things could be combined.

Dependencies:

@jtimon jtimon force-pushed the jt_signet branch 6 times, most recently from 827cfac to 9678146 Compare September 8, 2019 17:18
jtimon and others added 19 commits September 11, 2019 00:30
...reads params from regular arguments

Qt: Add a default purple and title for unkown chains
This also moves GetWitnessCommitmentIndex out of validation.cpp into CBlock, with 3 lines affected (GetWitnessCommitmentIndex(block) -> block.GetWitnessCommitmentIndex()).
The simple signature takes a sighash as argument and verifies a signature and pubkey against it. It is used in signet for verifying blocks, but can be used for practically anything.
Also adds a condition to test initialization code to not generate blocks for signet chains.
Running with -signet without any other parameters will use this network's parameters.
kallewoof and others added 9 commits September 11, 2019 00:35
...which are not only valid by definition but are also a consensus
rule for their own chain
ie custom signets are still covered with any other value for -chain

Support signet networks within custom

An alternative config file for a rebooted signet could be:

chain=signet2
[signet2]
con_signet_blocks=1
signet_blockscript=512103ad5e0edad18cb1f0fc0d28a3d4f1f3e445640337489abb10404f2d1e086be43051ae
seednode=178.128.221.177
seednode=2a01:7c8:d005:390::5
seednode=ntv3mtqw5wt63red.onion:38333
signet chains, including the default can be just a concrete cases in custom chains
For example:

chain=signet
[signet]
con_signet_blocks=1
signet_blockscript=512103ad5e0edad18cb1f0fc0d28a3d4f1f3e445640337489abb10404f2d1e086be43051ae
seednode=178.128.221.177
seednode=2a01:7c8:d005:390::5
seednode=ntv3mtqw5wt63red.onion:38333
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants