3

How can I be positive that one of the incoming payments to my bitcoin-core was double-spent after it was confirmed once by the network, through the JSON-RPC interface?

Related questions:

1 Answer 1

2

If your node received the original spend, the listunspent RPC will display the transaction with "-1" confirmations, as will any other RPCs that would normally list the transaction. The source code calls this conflicted: "not in the mempool and not in the block chain." This feature was first included in 0.9.0.

If your node never received the original spend (perhaps because it was offline at the time) or the now-stale block that contained it, it doesn't have any way to know about that original spend, so there's no information you can get from an RPC.

2
  • Thanks David! Now I'm really concerned about this: bitcoin.stackexchange.com/questions/730/… I wish I could find an update on that answer Commented Nov 20, 2014 at 18:47
  • AFAIR listunspent doesn't return txs that have < 0 confirmations. listsinceblock will not show them either but you can use listtransactions instead which does.
    – user11221
    Commented Jan 3, 2015 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.