Merge pull request #1706 from ivanbakel/err_line

Fixed error line missing from transaction.py
This commit is contained in:
Troy McConaghy 2017-07-31 18:28:50 +02:00 committed by GitHub
commit 15ee56c114

View File

@ -638,6 +638,7 @@ class Transaction(object):
for recipient in recipients:
if not isinstance(recipient, tuple) or len(recipient) != 2:
raise ValueError(('Each `recipient` in the list must be a'
' tuple of `([<list of public keys>],'
' <amount>)`'))
pub_keys, amount = recipient
outputs.append(Output.generate(pub_keys, amount))