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 as alias for --testnet #451

Closed
wants to merge 1 commit into from

Conversation

Sjors
Copy link
Member

@Sjors Sjors commented Feb 9, 2021

I plan to modify bitcoin/bitcoin#16546 to use --signet.

@prusnak
Copy link
Collaborator

prusnak commented Feb 9, 2021

It might have been cleaner to introduce another flag and then use client.is_testnet = args.testnet or args.signet below on line 268. But that's just my two satoshis.

@achow101
Copy link
Member

achow101 commented Feb 9, 2021

At this rate, we should just do --chain <name>. I want to avoid a repeat of the address type thing. We probably want to support regtest as well and that will actually need changes because the bech32 hrp is different.

@Sjors
Copy link
Member Author

Sjors commented Feb 9, 2021

That works for me, but is probably above my paygrade :-)

I assume you want to keep --testnet around for backwards compatibility?

@prusnak
Copy link
Collaborator

prusnak commented Feb 9, 2021

I created an alternative PR which implements --chain here: #452

@Sjors Sjors closed this Feb 9, 2021
achow101 added a commit that referenced this pull request Feb 10, 2021
…net)

a7d14ba Remove client.is_testnet usage in getdescriptor (Pavol Rusnak)
be2f95a Introduce --chain command line argument (replacing --testnet) (Pavol Rusnak)

Pull request description:

  Alternative to #451

  This nukes `--testnet` argument. If we want to keep that, I'll reintroduce it in another commit. Just let me know. I just think it's fine to get rid of that now, since we are breaking the API anyway in HWI 2.0.

  Also we should get rid of `client.is_testnet` across the whole codebase and check against the `client.chain`, but I'd prefer to leave that for later PR.

ACKs for top commit:
  achow101:
    ACK a7d14ba

Tree-SHA512: f2827399a9685d1826dc60bcda8582f03243608049e41dfb48887fcca47208b0f3d16d93eb4876ac222eab17623c09ba8a0dbd4ac3d47d8254f7a99955b62d4f
@Sjors Sjors deleted the 2021/02/signet branch February 12, 2021 14:56
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