petertodd / replace-by-fee-tools

Tools to test out replace-by-fee
GNU General Public License v3.0
145 stars 45 forks source link

doublespend.py looking for outpoint, which is not on the JSON output #8

Open 0KaL opened 7 years ago

0KaL commented 7 years ago

I'm trying to play with "Replace by fee" but the exploit code seems to be looking for an "outpoint" entry that does not exist on the RPC output, as showed on the picture below:

https://pbs.twimg.com/media/C2BeuQQXcAAum78.jpg:large

Is there some setting or some way to gather that outpoint in the script code?

Thanks in advance!

jesobreira commented 7 years ago

This is weird. Note that the outpoint does not come from the RPC itself. Rather, it's added to the return by the Python lib, by this code:

unspent['outpoint'] = COutPoint(lx(unspent['txid']), unspent['vout'])

Anyway, I see that your bitcoin-cli listunspent output lists only 1 transaction, so I guess it's some problem about the list itself. Would you please me by sending a second transaction and testing it again?

Oh, and the amount you're trying is too low... It might bring problems as well.