vbuterin / pybitcointools

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

Failing to sign transactions #114

Closed domschiener closed 8 years ago

domschiener commented 8 years ago

I keep getting an exception error when trying to push a transaction I already signed: Exception: {"status":"fail","data":"Could not push your transaction!","code":500,"message":"Did you sign your transaction?"}

Here is what the signed transaction (serialized) looks like: 0100000001410e1db7f9f925204ba8e4b9de6a6d07c20d841fd5f4609957efca469cc0b710000000008a473044022002d1ef2601e9c3e54f63d00d6ea0db30e36f976c0a654bf2beee39593136af040220759a0265f186d8c55985b3b8024d2ef2618a9f22fd2dfa87aca70dc9e688881901410493039f0946f77f18c1f448dfc54687001de7d8e3e0395162edf3dc3c34e8da6b87406e742f555e6582f89aa61e12d09a7d22f4e85369962d37cae98bd754f9b0ffffffff0188130000000000001976a914721e01284d908f88cfc2300a65f88c2afc878fbf88ac00000000

Here is the unsigned transaction (serialized): 0100000001410e1db7f9f925204ba8e4b9de6a6d07c20d841fd5f4609957efca469cc0b7100000000000ffffffff0188130000000000001976a914721e01284d908f88cfc2300a65f88c2afc878fbf88ac00000000

Any idea what is going wrong?

domschiener commented 8 years ago

Also tried it with a transaction with a larger value/fee, same issue.

domschiener commented 8 years ago

Found the issue, I had multiple unspent outputs in the transaction which I did not sign.