1
0

trezor and clones: rm dead code

see Electron-Cash/Electron-Cash#872
see Electron-Cash/Electron-Cash#874
This commit is contained in:
SomberNight
2018-09-30 02:10:17 +02:00
parent 8aebb8249a
commit ab1ec57429
4 changed files with 3 additions and 16 deletions

View File

@@ -345,11 +345,7 @@ class KeepKeyPlugin(HW_PluginBase):
txinputtype.script_type = self.get_keepkey_input_script_type(txin['type'])
else:
def f(x_pubkey):
if is_xpubkey(x_pubkey):
xpub, s = parse_xpubkey(x_pubkey)
else:
xpub = xpub_from_pubkey(0, bfh(x_pubkey))
s = []
xpub, s = parse_xpubkey(x_pubkey)
return self._make_node_path(xpub, s)
pubkeys = list(map(f, x_pubkeys))
multisig = self.types.MultisigRedeemScriptType(