-
-
Notifications
You must be signed in to change notification settings - Fork 276
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 testnet version 4 for bitcoin #14951
Comments
If we want to support testnet4 we need to add it to the firmware at least in https://github.com/trezor/trezor-firmware/tree/main/common/defs/bitcoin |
what would be the difference from current |
At least the name that should be "Testnet 4" and coin shortcut something like "TEST4" and the "hash_genesis_block". |
i would really like to see the diff against testnet.json. |
Well, that is a good question, maybe we can just change the name of the account and then the coin symbol would be TEST for both. Until eventually when we get rid of Testnet 3. |
After investigating and experimenting with it, it would be kind of too complicated/hacky at the suite/connect level to add this testnet 4 and keep testnet 3 without adding new coin to device. While changing from testnet 3 to testnet 4 is very simple. What about to getting rid of testnet 3? |
@matejcik says that nothing changes for the device really and he's right (modulo the coin ticker if we decide to discriminate between TEST3 and TEST4).
I think we could do this and offer people who want Testnet 3 support to use older version of the Suite. Like I said, firmware does not care whether it is signing Testnet 3 or Testnet 4 transactions AFAIK. |
If we decide to discriminate TEST3 and TEST4 in device that will allow us to support both testnets in suite.
It is even easier if user will want to use Testnet 3 they will just have to change the blockbook URL in suite to use Custom Blockbook with URL: https://tbtc1.trezor.io and they get Testnet 3. The plan would be to write an article about it and add a banner that will be displayed to users that have Testnet coin enable in Suite so they are not surprise that suddenly after updating they have 0 balance in testnet. |
Not if you merge trezor/trezor-firmware#4486 - the |
Right now, I can receive and send Testnet 4 in Trezor Suite by just changing the blockbook URL to be https://tbtc4-1.trezor.io. So I assume the same will be possible once we change the default to be Testnet 4 blockbook server. Is |
Ok, let's clarify, since I have conversations related to this in different places.
I see 2 ways of adding support of Testnet 4
Other good thing about option 2 is that is more specific and clear in naming. |
Well, that is weird. How does Suite know which coin is provided by the backend? (Let's say it's a Bitcoin backend and not Dogecoin)? In the past we were doing detection by Edit: I think I understand now. In the past we had a feature which allowed you to add custom backend (let's say trololo.example.com) and the autodetection happened like I described (so the Suite knew that trololo.example.com was serving Dogecoin by looking at the hash of the genesis block). I guess the new Suite does not allow this at all and what you were describing was just changing the backend and not adding a custom one. |
I'm afraid that overriding Testnet3 with Testnet4 would bring us issues... and therefore I would prefer to add another testnet on top of existing one and later remove the old one. Btw. I think we should unify the testnet labeling across FW, Connect, and Suite. And also between networks. 🫣 In Suite, we could still distinguish between Testnet 3 and Testnet 4, but both would use the unified |
Sent follow up issue here #16758 |
QA OK
Info:
|
Bitcoin testnet v3 is kind of broken.
BIP-0094 proposes improved version which was already released with Bitcoin Core 28.0
Backends are ready:
I recommend to keep current testnet in place and rename it to
Testnet 3
.The text was updated successfully, but these errors were encountered: