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

add signet support #2816

Merged

Conversation

kallewoof
Copy link
Contributor

This PR adds support for signet networks.

Blocked by: bitcoin/bitcoin#16411

See also: https://en.bitcoin.it/wiki/Signet

@kallewoof kallewoof requested a review from cdecker as a code owner July 18, 2019 15:18
@kallewoof kallewoof force-pushed the 2019-07-18-signet-on-master branch 2 times, most recently from d6af75a to ca06167 Compare July 18, 2019 16:00
@cdecker
Copy link
Member

cdecker commented Jul 18, 2019

Awesome, thanks for the PR @kallewoof. I think this is a good addition once bitcoin/bitcoin#16411 is merged ^^

Copy link
Collaborator

@ZmnSCPxj ZmnSCPxj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly good, minor suggestion.

wallet/wallet.c Outdated Show resolved Hide resolved
@kallewoof kallewoof force-pushed the 2019-07-18-signet-on-master branch 4 times, most recently from 718a622 to 618bedc Compare July 19, 2019 02:55
bitcoin/chainparams.c Outdated Show resolved Hide resolved
@kallewoof kallewoof force-pushed the 2019-07-18-signet-on-master branch from 618bedc to bdf7461 Compare July 19, 2019 04:24
bitcoin/chainparams.c Outdated Show resolved Hide resolved
bitcoin/chainparams.c Outdated Show resolved Hide resolved
wallet/wallet.c Outdated Show resolved Hide resolved
@kallewoof kallewoof force-pushed the 2019-07-18-signet-on-master branch from bdf7461 to 7eb368a Compare July 19, 2019 05:08
@kallewoof
Copy link
Contributor Author

@ZmnSCPxj Thanks for the review, I believe I addressed everything you pointed at.

Copy link
Collaborator

@ZmnSCPxj ZmnSCPxj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK ad84897

Copy link
Collaborator

@niftynei niftynei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice. suggestion to also update: jsonrpc.c:979

.when_lightning_became_cool = 1,
.p2pkh_version = 125,
.p2sh_version = 87,
.testnet = false,
Copy link
Collaborator

@niftynei niftynei Jul 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd argue that we should set this to true. see lightningd/bitcoin.c:380-387 and lightningd/options.c:685-688 for rationale.

@kallewoof kallewoof force-pushed the 2019-07-18-signet-on-master branch from 7eb368a to d12c329 Compare July 20, 2019 03:49
@kallewoof
Copy link
Contributor Author

@niftynei Thanks! I switched .testnet to true and updated comment in jsonrpc.c.

@ZmnSCPxj
Copy link
Collaborator

ACK d12c329

@niftynei niftynei merged commit 918e130 into ElementsProject:master Jul 22, 2019
@kallewoof kallewoof deleted the 2019-07-18-signet-on-master branch July 23, 2019 01:02
@ZmnSCPxj
Copy link
Collaborator

Were we not supposed to hold off on this until bitcoin/bitcoin#16411 was merged?

@kallewoof
Copy link
Contributor Author

Ideally, but it's not harmful or causing weird dependency issues. Only thing is people will have to run a custom build of bitcoin core to use this, at the moment.

@ZmnSCPxj
Copy link
Collaborator

I am more concerned that changes to the bitcoin PR might require changes to this PR, but I suppose the upstream PR is now mostly settled.

@kallewoof
Copy link
Contributor Author

Ahh, that is a good point.

@niftynei
Copy link
Collaborator

niftynei commented Jul 24, 2019 via email

@kallewoof
Copy link
Contributor Author

Sad, but if you wish, you can revert this PR and I will make a new one once the bitcoin core PR has been merged. If not, I will make sure that any changes done on bitcoin side are duplicated here, in a follow-up PR.

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.

4 participants