Skip to content

Commit

Permalink
Merge pull request spesmilo#2865 from SomberNight/get_preimage_script
Browse files Browse the repository at this point in the history
fix unresolved variable
  • Loading branch information
ecdsa authored Sep 12, 2017
2 parents 60c1c6c + cbc35d9 commit dd2b7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def get_preimage_script(self, txin):
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):
Expand Down

0 comments on commit dd2b7e4

Please sign in to comment.