gui icon indicating copy to clipboard operation
gui copied to clipboard

Switch mainnet / testnet / signet / regtest from GUI

Open Sjors opened this issue 3 years ago • 13 comments

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 avatar Aug 28 '20 13:08 Sjors

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]

michaelfolkson avatar Aug 28 '20 13:08 michaelfolkson

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.

ghost avatar Aug 28 '20 15:08 ghost

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)?

jonasschnelli avatar Aug 28 '20 15:08 jonasschnelli

@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.

Sjors avatar Aug 28 '20 15:08 Sjors

In reference to color selection:

https://github.com/bitcoin-core/gui/issues/89#issuecomment-695752844

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).

RandyMcMillan avatar Sep 20 '20 07:09 RandyMcMillan

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.

jonatack avatar Sep 20 '20 07:09 jonatack

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 https://github.com/bitcoin-core/gui/issues/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.

Bosch-0 avatar Sep 24 '20 09:09 Bosch-0

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

image

@Bosch-0 c7898bc

ghost avatar Sep 25 '20 13:09 ghost

Updated comment to include signet

Bosch-0 avatar Sep 27 '20 04:09 Bosch-0

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

Sjors avatar May 10 '21 18:05 Sjors

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

kristapsk avatar May 10 '21 20:05 kristapsk

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 avatar Aug 31 '21 14:08 Sjors

Implemented in #414 using QSettings.

Sjors avatar Sep 01 '21 11:09 Sjors