From cbc35d96c8a0383349d5fbb6028d2e0204878bbf Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 12 Sep 2017 17:09:54 +0200 Subject: [PATCH] fix unresolved variable --- lib/transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction.py b/lib/transaction.py index 39a45a37..753ecfa4 100644 --- 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):