From 3f647f1b7ba46a224757e94109a837a6d2389a28 Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Thu, 24 Jun 2021 15:45:16 +0200 Subject: [PATCH] chore(common): Ensure that testnet coins use slip44 coin type 1. --- common/tools/coin_info.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/tools/coin_info.py b/common/tools/coin_info.py index 67d7ba8d9..66943068a 100755 --- a/common/tools/coin_info.py +++ b/common/tools/coin_info.py @@ -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")