<blockquote>
  <p>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.</p>
</blockquote>

<p>Nothing prevents that. That happens all the time.</p>

<blockquote>
  <p>Clearly both of them cannot get the transaction fee.</p>
</blockquote>

<p>Right.</p>

<blockquote>
  <p>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.</p>
</blockquote>

<p>Whoever solves it and gets their block into the blockchain gets everything, and the loser gets nothing. This is not always the same as the person who solves it first. </p>

<blockquote>
  <p>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.</p>
</blockquote>

<p>That happens all the time. The general advice on the site is to use a high transaction fee, rebroadcast your transaction if it isn't confirming, and to not depend on transactions confirming quickly.</p>

CC BY-SA 3.0
2017-07-31T10:26:32.243Z
Note 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
CC BY-SA 3.0
2017-07-29T17:37:56.553Z
2017-07-29T17:37:56.553Z
Nick ODell
<p>I am just learning bitcoin and am confused on two issues.</p>

<ol>
<li><p>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.</p></li>
<li><p>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.</p></li>
</ol>

<p>Thanks!</p>

<transactions><blockchain>
What prevents two miners from working on separate blocks which share transactions?
Aaron Sips
# What prevents two miners from working on separate blocks which share transactions?

(Asked by: username_0 on 2017-07-29)

I am just learning bitcoin and am confused on two issues.

1. 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.
2. 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!

**Tags:** transactions, blockchain


---

## 1 answers

### Answer by username_1 on 2017-07-29. Score: 2 | Accepted answer

> 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.

Nothing prevents that. That happens all the time.

> Clearly both of them cannot get the transaction fee.

Right.

> 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.

Whoever solves it and gets their block into the blockchain gets everything, and the loser gets nothing. This is not always the same as the person who solves it first.

> 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.

That happens all the time. The general advice on the site is to use a high transaction fee, rebroadcast your transaction if it isn't confirming, and to not depend on transactions confirming quickly.

> **Comments:**
> **username_2**: Note 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.  

---

