chore(common): Ensure that testnet coins use slip44 coin type 1.

release/21.07
Andrew Kozlik 3 years ago committed by Martin Milata
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…
Cancel
Save