3

Suppose an attacker makes a double-spend and controls the mining pool that happens to find the good which confirms the transactions. What happens? I suppose the network hopes that a vigilante sees the double spend on the block chain and notifies everyone. Then what happens? Do the mining pools coordinate and remine the block? Seems like a big disruption. Is there a more elegant solution?

2
  • 1
    Do you mean that he tries to spend coins that were spent already, or do you mean that he prioritizes a second order to spend his coins benefiting himself over another transaction posted earlier?
    – Murch
    Jan 7, 2015 at 23:09
  • @Murch I really meant double spend in a contemporaneous sense. Like spending once and then spending again 1 second later.
    – Nick
    Jan 9, 2015 at 3:47

1 Answer 1

5

Every single Bitcoin node in the network will reject and ignore the block as invalid if there is a double spend in it. The block won't even spread very far, because the peers that first receive it will ban the miner who sent it and not forward on the block to any other nodes.

It is not a big disruption as the check for this is fast. Other mining pools don't need to "remine" it , they'll just recognize the submitted block as invalid, and keep working on their own block.

1
  • Perhaps this question was about sending TX to a merchant who accepts payment with 0 conf, creating another TX after receiving the goods which spends the same inputs and then confirming the second TX. In this case the block would still be valid. And there is no network level rule that can prevent this. As discussed here: bitcoin.stackexchange.com/questions/3315/…
    – Emre K.
    Aug 3, 2015 at 11:06

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.