1
Apologies if this has been covered, but there's one area of the Bitcoin network that is not clear in my head, and it's intimately linked to the double-spend problem.
Suppose Person A is purchasing an item in a store. They "pay" Person B 1 BTC for a good and broadcast this transaction to the network, which Person B sees as unconfirmed. The transaction is included in a block (Block 1) whose Proof of Work is now being found/solved.
Suppose Person A controls 30% of the Bitcoin mining network (arbitrary high proportion), and has his miners instead mine a different block (Block 2) containing a transaction spending the same BTC to a different wallet controlled by Person A.
Suppose the Proof of Work for Block 2 is, against the odds, obtained first, and the "corrupt" miner who finds the requisite hash broadcasts it to the entire bitcoin network. This is where my understanding breaks down. What exactly happens when the remaining 70% see this transaction? Do they stop mining Block 1? At what point can Block 1 be orphaned?
I would change the wordings: "...to a different wallet controlled by Person A" with "...to pay Person C for yet another good". – croraf – 2017-10-30T15:00:08.537
In my understanding, the 70% of miners aren't working all on identical blocks Block1, but each on his own block, which might or might not include the first or the second transaction, depending on their transaction priority scheme, the transactions available and so on. No miner will include both contradicting transactions in his block. There's no guarantee which transaction wins, but guarantee that only one will persist. – Ralf Kleberhoff – 2017-10-30T15:27:10.323
Yes, that was an oversimplification for the example. Block 1 was just supposed to represent any block that contained the legitimate transaction but did not contain the illegitimate transaction – Marcus Johnson – 2017-10-30T16:31:40.137