Merge pull request #2865 from SomberNight/get_preimage_script

fix unresolved variable
This commit is contained in:
ThomasV 2017-09-12 18:08:03 +02:00 committed by GitHub
commit dd2b7e4d89
1 changed files with 1 additions and 1 deletions

View File

@ -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):