From 10b35e3545001f1e98f92942e7f7ba49e915c27a Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 17 Sep 2017 17:09:22 +0200 Subject: [PATCH] follow-up 0abb38cf51daca597997e7baaff5385659168bad --- lib/transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction.py b/lib/transaction.py index b52517ce3..bb491b1e4 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -650,7 +650,7 @@ class Transaction: n = len(sig_list) + 2 # fixme: witness script must be decided by wallet witness_script = multisig_script(pubkeys, txin['num_sig']) - return var_int(n) + '00' + ''.join(push_script(x) for x in sig_list) + push_script(witness_script) + return var_int(n) + '00' + ''.join(var_int(len(x)//2) + x for x in sig_list) + var_int(len(witness_script)//2) + witness_script @classmethod def is_segwit_input(self, txin):