0
1
I am just learning bitcoin and am confused on two issues.
What prevents one miner (Miner A) from creating a block including transaction X which has a transaction fee associated with it, and Miner B working on a separate block which also has the same transaction X in it. Clearly both of them cannot get the transaction fee. Does whoever solves it first get the bitcoins, and the loser gets nothing? Or are transactions "claimed" when you create a block, so others cannot also work on verifying them.
Is it possible for somebody to not have their transaction be verified in a long time? What if no miner picks up their transaction in their respective block they are working on? Or are the chances of that very low.
Thanks!
1Note that the same thing would happen even if the blocks contains no overlapping transactions or no transactions at all. Only one block can ultimately survive at any given height. So if two miners both mine a block that has the same parent block, only one of them will get the block reward and/or transaction fees. – David Schwartz – 2017-07-31T10:26:32.243