vbuterin / pybitcointools

SImple, common-sense Bitcoin-themed Python ECC library
1.28k stars 856 forks source link

Fix syntax error #117

Closed zouppen closed 8 years ago

zouppen commented 8 years ago

There is syntax error in transaction.py. I made quick fix and it seems to work. Please test before merging because I didn't test this fix carefully.

reiven commented 8 years ago

+1 @vbuterin please merge this, is making pybtctool fails

Traceback (most recent call last):
  File "./pybtctool", line 3, in <module>
    from bitcoin import *
  File "/tmp/pybitcointools/bitcoin/__init__.py", line 4, in <module>
    from bitcoin.transaction import *
  File "/tmp/pybitcointools/bitcoin/transaction.py", line 141
    for out in newtx["outs'][:len(newtx["ins"]) - 1)]:
                                           ^
wizardofozzie commented 8 years ago

Yep, that was mistyped from my PR. Signing of SIGHASH_SINGLE should also be returning 1 for outputs at an index larger than the input index, though I'll make a separate issue

reiven commented 8 years ago

Thanks @vbuterin !