fix #3680 (trezor: spending from multisig)

follow-up of #3621 (Make Electrum work with trezorlib 0.9.0)
This commit is contained in:
SomberNight 2018-01-12 19:21:09 +01:00
parent f3f43c8f2a
commit cc9032c9ea
1 changed files with 2 additions and 2 deletions

View File

@ -294,10 +294,10 @@ class TrezorCompatiblePlugin(HW_PluginBase):
s = []
node = self.ckd_public.deserialize(xpub)
return self.types.HDNodePathType(node=node, address_n=s)
pubkeys = map(f, x_pubkeys)
pubkeys = list(map(f, x_pubkeys))
multisig = self.types.MultisigRedeemScriptType(
pubkeys=pubkeys,
signatures=map(lambda x: bfh(x)[:-1] if x else b'', txin.get('signatures')),
signatures=list(map(lambda x: bfh(x)[:-1] if x else b'', txin.get('signatures'))),
m=txin.get('num_sig'),
)
if script_gen == SCRIPT_GEN_NATIVE_SEGWIT: