<p>&quot;In this case, will M2 and M3 gets reward and transaction fee?&quot; Simple answer -&gt; Yes. <strong>But block rewards are not spendable right away</strong>. They are timelocked for 100 blocks.</p>
<p>When this happens other miners will imply which one of these 3 blocks(M1,M2,M3) they accept by exerting pow on top of it. Within a couple of blocks one the blockchains will outcompete the other two. The rewards in the block that is now in the longest chain will be spendable AND accepted by anyone that follows that chain once the 100 block limit is achieved.</p>

CC BY-SA 4.0
2020-10-27T12:20:33.767Z
2020-10-27T12:20:33.767Z
Can Gurel
<p>No, the blocks from M2 and M3 will most likely end up being discarded. The reason being that as soon as M1 broadcasts its block most miners will drop their current block and start trying to solve the next one. </p>

<p>There's nothing to stop M2 and M3 broadcasting their blocks after M1 in the hope that they will also be able to generate the next block and take over the longest chain. The problem is that these days the cost of generating a block is in the 10's of thousands of dollars in electricity so it's an expensive gamble to try and solve two blocks in a row. </p>

<p>And in answer to your main question if a transaction that's already included in a block appears in a subsequent block then the new block will be rejected as invalid by full nodes and other miners.</p>

CC BY-SA 4.0
2019-03-08T08:36:27.947Z
What will happen to Tx4 and Tx5 in this case ? as blocks by M2 and M3 are rejected.
Rizstien
CC BY-SA 3.0
2017-11-10T11:46:31.497Z
2017-11-10T11:46:31.497Z
sipsorcery
<p>I know that miners have freedom to choose transactions from memory pool,</p>

<p>Let say there are 5 transactions Tx1 Tx2 Tx3 Tx4 and Tx5 in memory pool,</p>

<p>There are 3 miners M1 M2 and M3</p>

<p>M1 has created block with Tx1 Tx2 and Tx3</p>

<p>M2 has created block with Tx2 Tx3 and Tx4</p>

<p>M3 has created block with Tx2 and Tx5</p>

<p>==</p>

<p>M1 successfully solves the block and get reward in terms of bitcoin and transaction fee</p>

<p>at same time M2 and M3 successfully solves the block,
In this case, will M2 and M3 gets reward and transaction fee? as Tx2 was already part of M1's block which was already confirmed.</p>

<blockchain><mining-theory><mining-reward>
What if same transaction is added in more than one block of different miners?
Harikrishna
# What if same transaction is added in more than one block of different miners?

(Asked by: username_0 on 2017-11-10)

I know that miners have freedom to choose transactions from memory pool,

Let say there are 5 transactions Tx1 Tx2 Tx3 Tx4 and Tx5 in memory pool,

There are 3 miners M1 M2 and M3

M1 has created block with Tx1 Tx2 and Tx3

M2 has created block with Tx2 Tx3 and Tx4

M3 has created block with Tx2 and Tx5

==

M1 successfully solves the block and get reward in terms of bitcoin and transaction fee

at same time M2 and M3 successfully solves the block,
In this case, will M2 and M3 gets reward and transaction fee? as Tx2 was already part of M1's block which was already confirmed.

**Tags:** blockchain, mining-theory, mining-reward


---

## 2 answers

### Answer by username_1 on 2020-10-27. Score: 2

"In this case, will M2 and M3 gets reward and transaction fee?" Simple answer -> Yes. **But block rewards are not spendable right away**. They are timelocked for 100 blocks.

When this happens other miners will imply which one of these 3 blocks(M1,M2,M3) they accept by exerting pow on top of it. Within a couple of blocks one the blockchains will outcompete the other two. The rewards in the block that is now in the longest chain will be spendable AND accepted by anyone that follows that chain once the 100 block limit is achieved.


---

### Answer by username_2 on 2017-11-10. Score: 2

No, the blocks from M2 and M3 will most likely end up being discarded. The reason being that as soon as M1 broadcasts its block most miners will drop their current block and start trying to solve the next one.

There's nothing to stop M2 and M3 broadcasting their blocks after M1 in the hope that they will also be able to generate the next block and take over the longest chain. The problem is that these days the cost of generating a block is in the 10's of thousands of dollars in electricity so it's an expensive gamble to try and solve two blocks in a row.

And in answer to your main question if a transaction that's already included in a block appears in a subsequent block then the new block will be rejected as invalid by full nodes and other miners.

> **Comments:**
> **username_3**: What will happen to Tx4 and Tx5 in this case ? as blocks by M2 and M3 are rejected.  

---

