-
Notifications
You must be signed in to change notification settings - Fork 871
Add custom signet option #1293
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
base: master
Are you sure you want to change the base?
Add custom signet option #1293
Conversation
| #if !NOSOCKET | ||
| .AddSeeds(new[] | ||
| { | ||
| "178.128.221.177", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These seeds are for the main signet, I don't think it's correct to include them on a custom one.
On a custom signet the seed node would be the IP of the block-emitting node, which could be anything (a public IP, a LAN IP, etc).
| builder.SetChainName(name == DEFAULT_SIGNET_NAME ? SignetName : new ChainName(name)); | ||
| builder.SetNetworkSet(this); | ||
| builder.SetConsensus(new Consensus() | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(GitHub doesn't allow me to comment on line 38 so I leave this comment here, the closest I could)
Bitcoin Knots supports -signetblocktime, which is a very useful flag for a custom signet. Maybe PowTargetSpacing could also be parameterized while keeping the default value of 10*60.
| private Network CreateSignet( | ||
| string name = DEFAULT_SIGNET_NAME, | ||
| string challenge = DEFAULT_SIGNET_CHALLENGE, | ||
| string genesisBlock = DEFAULT_SIGNET_GENESIS_BLOCK) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@sipsorcery sorry for the delay, I will follow more often to get this merge ASAP. I made a comment about it. @1ma same as your PR on #1295. You need to also fix the hashes. |
|
I merged #1295 so if you rebase, tests should pass. If you can do #1293 (comment) that would be perfect. |
As discussed in #1226.