commit dd2b7e4d89dcf0e61bb12bb1505fa30b0b8ead4c
parent 60c1c6ccebcc7c62e72ff0b14b773ed6a77b0c8d
Author: ThomasV <thomasv@electrum.org>
Date: Tue, 12 Sep 2017 18:08:03 +0200
Merge pull request #2865 from SomberNight/get_preimage_script
fix unresolved variable
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/transaction.py b/lib/transaction.py
@@ -667,7 +667,7 @@ class Transaction:
pkh = bh2u(bitcoin.hash_160(bfh(pubkey)))
return '76a9' + push_script(pkh) + '88ac'
else:
- raise TypeError('Unknown txin type', _type)
+ raise TypeError('Unknown txin type', txin['type'])
@classmethod
def serialize_outpoint(self, txin):