1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00

coins-check: Update for Decred

This commit is contained in:
Saleem Rashid 2017-12-18 16:21:50 +00:00 committed by Pavol Rusnak
parent 65c3251a42
commit 22fecb414a

View File

@ -14,6 +14,7 @@ for coin in json.load(open('coins.json')):
assert isinstance(coin['coin_name'], str) assert isinstance(coin['coin_name'], str)
assert isinstance(coin['coin_shortcut'], str) assert isinstance(coin['coin_shortcut'], str)
assert isinstance(coin['coin_label'], str) assert isinstance(coin['coin_label'], str)
assert isinstance(coin['curve_name'], str)
assert isinstance(coin['address_type'], int) assert isinstance(coin['address_type'], int)
assert isinstance(coin['address_type_p2sh'], int) assert isinstance(coin['address_type_p2sh'], int)
assert coin['address_type'] != coin['address_type_p2sh'] assert coin['address_type'] != coin['address_type_p2sh']
@ -26,6 +27,7 @@ for coin in json.load(open('coins.json')):
assert is_hex(coin['xpub_magic']) assert is_hex(coin['xpub_magic'])
assert isinstance(coin['bip44'], int) assert isinstance(coin['bip44'], int)
assert isinstance(coin['segwit'], bool) assert isinstance(coin['segwit'], bool)
assert isinstance(coin['decred'], bool)
assert coin['forkid'] is None or isinstance(coin['forkid'], int) assert coin['forkid'] is None or isinstance(coin['forkid'], int)
assert isinstance(coin['force_bip143'], bool) assert isinstance(coin['force_bip143'], bool)
assert isinstance(coin['default_fee_b'], dict) assert isinstance(coin['default_fee_b'], dict)