mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-17 21:22:10 +00:00
chore(common): Ensure that testnet coins use slip44 coin type 1.
This commit is contained in:
parent
e3faece811
commit
3f647f1b7b
@ -184,6 +184,9 @@ def validate_btc(coin):
|
||||
if not coin["max_address_length"] >= coin["min_address_length"]:
|
||||
errors.append("max address length must not be smaller than min address length")
|
||||
|
||||
if "testnet" in coin["coin_name"].lower() and coin["slip44"] != 1:
|
||||
errors.append("testnet coins must use slip44 coin type 1")
|
||||
|
||||
if coin["segwit"]:
|
||||
if coin["bech32_prefix"] is None:
|
||||
errors.append("bech32_prefix must be defined for segwit-enabled coin")
|
||||
|
Loading…
Reference in New Issue
Block a user