commit b3c379b93952159ba8402930d55236427908f92e
parent 6bfbc9a718b938d239932a5ca6bc912fdec28f51
Author: ThomasV <thomasv@electrum.org>
Date: Sun, 29 Jan 2017 10:37:11 +0100
fix serialize bug for p2pk
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/transaction.py b/lib/transaction.py
@@ -625,6 +625,9 @@ class Transaction:
redeem_script = txin.get('redeemScript')
if self.is_segwit_input(txin):
return push_script(redeem_script)
+ if txin['type'] == 'p2pk':
+ sig = txin['signatures'][0]
+ return push_script(sig)
pubkeys, sig_list = self.get_siglist(txin, estimate_size)
script = ''.join(push_script(x) for x in sig_list)
if not pubkeys: