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

Switch mainnet / testnet / signet / regtest from GUI #78

Open
Sjors opened this issue Aug 28, 2020 · 13 comments
Open

Switch mainnet / testnet / signet / regtest from GUI #78

Sjors opened this issue Aug 28, 2020 · 13 comments
Labels

Comments

@Sjors
Copy link
Member

Sjors commented Aug 28, 2020

The only ways to start QT with a different network is to launch it from the command line or edit bitcoin.conf. It would be nice if it can be done from the settings screen (a restart is fine).

@Sjors Sjors added the Feature label Aug 28, 2020
@michaelfolkson
Copy link
Contributor

michaelfolkson commented Aug 28, 2020

Concept ACK. Wait for Signet to be merged first? So there would be mainnet, testnet, regtest and signet options in the GUI?

[edit: GUI functionality comes in a later release typically so I am assuming we won't wait for Signet to be merged for this. Signet won't be included in this]

@ghost
Copy link

ghost commented Aug 28, 2020

The only ways to start QT with a different network is to launch it from the command line or edit bitcoin.conf. It would be nice if it can be done from the settings screen (a restart is fine).

In Windows if you search for "bitcoin" you get two options for mainnet and testnet which are links to shortcuts that have below targets set in their properties and same thing for electrum wallet:

"C:\Program Files\Bitcoin\bitcoin-qt.exe"
"C:\Program Files\Bitcoin\bitcoin-qt.exe" -testnet

mainnet-testnet-shortcuts

Shortcuts can be created in Ubuntu as well.

@jonasschnelli
Copy link
Contributor

Concept ACK.
Since the different nets can run in parallel, would it be possible to open – say – regtest form mainnet (new application launch instead of restart)?

@Sjors
Copy link
Member Author

Sjors commented Aug 28, 2020

@prayank23 that's pretty cool. If that can be done on macOS too that's nice. That also lets you run in parallel, which as @jonasschnelli points out is useful.

@RandyMcMillan
Copy link
Contributor

In reference to color selection:

#89 (comment)

If multiple networks can be easily ran in parallel - color blindness should be considered and an effort should be made so the UIs are distinguishable by people that may not be able to tell a difference between orange and green (or whatever colors are ultimately used).

@jonatack
Copy link
Member

If multiple networks can be easily ran in parallel - color blindness should be considered and an effort should be made so the UIs are distinguishable by people that may not be able to tell a difference between orange and green (or whatever colors are ultimately used).

Regtest/testnet/mainnet GUIs can be run at the same time, just like bitcoind.

On Debian at least, the splash/loading and main screens display "[testnet]" or "[test]". It might be good to have it also displayed in the node windows.

I'm not sure if that is sufficient for color-blind people; it's good to raise the question.

@Bosch-0
Copy link

Bosch-0 commented Sep 24, 2020

Concept ACK - though I think this should be buried in advanced options, end users should not have to be concerned with the various networks and could accidentally switch and be very confused / potentially lose bitcoin.

Also regarding color blind concerns @RandyMcMillan I made the below comment over at #89


I would be interested in (somehow) getting feed back from color blind people.

There are some tools online but I am not sure how reliable they are. Below I used https://logolab.app/lab to test color blindness for the different icons we use, it only tests for Deuteranomaly, Protanopia and Tritanopia though (A few other kinds exist). Blacks pretty much look the same for everyone so will it will be the most consistent for color blind users - another reason to stick with black imo.

image

Some observations - Tritanopia will likely see regtest and testnet the same color, protanopia may see testnet the same as orange, Deuteranomaly may see orange and testnet as similar in color.


In Windows if you search for "bitcoin" you get two options for mainnet and testnet which are links to shortcuts that have below targets set in their properties and same thing for electrum wallet:

@prayank23 I don't think this is a good idea, naive users probably don't know the difference between the two and shouldn't have too. I think having one app option for main net and the ability to change once inside the GUI will result in less user error.

@ghost
Copy link

ghost commented Sep 25, 2020

What color is signet using? I couldn't find the details in the PR.

image

@Bosch-0 c7898bc

@Bosch-0
Copy link

Bosch-0 commented Sep 27, 2020

Updated comment to include signet

@Sjors Sjors changed the title Switch mainnet / testnet / regtest from GUI Switch mainnet / testnet / signet / regtest from GUI May 10, 2021
@Sjors
Copy link
Member Author

Sjors commented May 10, 2021

Signet has been merged since. This is still on my wish list :-)

@kristapsk
Copy link
Contributor

I personally just have different desktop entries for mainnet, regtest, testnet and signet and can launch any of them or even multiple simultaneously. https://github.com/kristapsk/portage-overlay/blob/7d1a0e1a9c5fae843cd3658b9d4b99bf3a3d2fde/net-p2p/bitcoin-qt/bitcoin-qt-0.21.1.ebuild#L145

@Sjors
Copy link
Member Author

Sjors commented Aug 31, 2021

I was looking into using settings.json to store the network choice, but this is tricky because each network has its own settings.json, which is read after the network is decided.

@Sjors
Copy link
Member Author

Sjors commented Sep 1, 2021

Implemented in #414 using QSettings.

hebasto added a commit to bitcoin/bitcoin that referenced this issue Feb 12, 2024
9d37886 gui: Update Node window title with chain type (pablomartin4btc)

Pull request description:

  It fixes #544.

  Enhance the Node window title by appending the chain type to it, except for the `mainnet`, mirroring the behavior in the main window.

  ![image](https://github.com/bitcoin-core/gui/assets/110166421/6b81675c-6e53-411f-9ea7-921e74cd2359)

  There was also some [interest](bitcoin-core/gui#78 (comment)) on this while discussing network switching.

ACKs for top commit:
  MarnixCroes:
    tACK 9d37886
  hernanmarino:
    tACK 9d37886
  BrandonOdiwuor:
    tested ACK 9d37886
  alfonsoromanz:
    Tested ACK bitcoin-core/gui@9d37886
  kristapsk:
    ACK 9d37886
  hebasto:
    ACK 9d37886, tested on Ubuntu 23.10.

Tree-SHA512: 8c34c4586bd59b1c522662e8aa0726dccc8f12e020f7a6a1af5200a29e5817e1c51e0f467c7923041fc41535ea093c3e0dd787befbbcc84d6b9f7ff0d969db04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants