1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 15:28:10 +00:00

common: style

This commit is contained in:
Tomas Susanka 2020-03-31 07:22:17 +00:00
parent 9d116598d0
commit ab5ba2b106

View File

@ -187,12 +187,16 @@ def validate_btc(coin):
if coin["bech32_prefix"] is None: if coin["bech32_prefix"] is None:
errors.append("bech32_prefix must be defined for segwit-enabled coin") errors.append("bech32_prefix must be defined for segwit-enabled coin")
if coin["xpub_magic_segwit_p2sh"] is None: if coin["xpub_magic_segwit_p2sh"] is None:
errors.append("xpub_magic_segwit_p2sh must be defined for segwit-enabled coin") errors.append(
"xpub_magic_segwit_p2sh must be defined for segwit-enabled coin"
)
else: else:
if coin["bech32_prefix"] is not None: if coin["bech32_prefix"] is not None:
errors.append("bech32_prefix must not be defined for segwit-disabled coin") errors.append("bech32_prefix must not be defined for segwit-disabled coin")
if coin["xpub_magic_segwit_p2sh"] is not None: if coin["xpub_magic_segwit_p2sh"] is not None:
errors.append("xpub_magic_segwit_p2sh must not be defined for segwit-disabled coin") errors.append(
"xpub_magic_segwit_p2sh must not be defined for segwit-disabled coin"
)
for bc in coin["bitcore"] + coin["blockbook"]: for bc in coin["bitcore"] + coin["blockbook"]:
if not bc.startswith("https://"): if not bc.startswith("https://"):