commit cbf1b5d9d5670fc84fbe47d6d20eddda24ea20f5
parent 530980ea37b9627b0ab26b63acc8866b799b23bc
Author: SomberNight <somber.night@protonmail.com>
Date: Sun, 29 Apr 2018 15:06:19 +0200
py3.4 compat: follow-up e13183ea7a4d43c861a973f4792980d637005074
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/transaction.py b/lib/transaction.py
@@ -574,7 +574,7 @@ def deserialize(raw):
-def multisig_script(public_keys, m):
+def multisig_script(public_keys: Sequence[str], m: int) -> str:
n = len(public_keys)
assert n <= 15
assert m <= n
@@ -768,7 +768,7 @@ class Transaction:
witness = construct_witness([sig_list[0], pubkeys[0]])
elif txin['type'] in ['p2wsh', 'p2wsh-p2sh']:
witness_script = multisig_script(pubkeys, txin['num_sig'])
- witness = construct_witness([0, *sig_list, witness_script])
+ witness = construct_witness([0] + sig_list + [witness_script])
else:
raise Exception('wrong txin type:', txin['type'])
if self.is_txin_complete(txin) or estimate_size: