From 88bbaf0950a8d4ab9c29b1849d8c55a0affc1894 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 27 Aug 2017 14:03:53 +0200 Subject: [PATCH] postpone x_pubkeys replacement (fix #2738) --- lib/transaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/transaction.py b/lib/transaction.py index 58340d7fb..8b651c801 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -566,7 +566,7 @@ class Transaction: j = pubkeys.index(pubkey) print_error("adding sig", i, j, pubkey, sig) self._inputs[i]['signatures'][j] = sig - self._inputs[i]['x_pubkeys'][j] = pubkey + #self._inputs[i]['x_pubkeys'][j] = pubkey break # redo raw self.raw = self.serialize() @@ -831,7 +831,7 @@ class Transaction: sig = private_key.sign_digest_deterministic(pre_hash, hashfunc=hashlib.sha256, sigencode = ecdsa.util.sigencode_der) assert public_key.verify_digest(sig, pre_hash, sigdecode = ecdsa.util.sigdecode_der) txin['signatures'][j] = bh2u(sig) + '01' - txin['x_pubkeys'][j] = pubkey + #txin['x_pubkeys'][j] = pubkey txin['pubkeys'][j] = pubkey # needed for fd keys self._inputs[i] = txin print_error("is_complete", self.is_complete())