<ol>
<li><p>There will be a Blockchain reorganisation of 1 or 2 blocks. As each node receives a conflicting block it will choose the one with most work. The other will be set aside as a &quot;stale&quot; block. Conflicting blocks have the same parent block and the same block height.</p>
</li>
<li><p>Every node performs the check independently. Because each node uses the same rules they end up making the same choice eventually. We say they reach consensus.</p>
</li>
<li><p>Transactions made unconfirmed by a reorg go back into the node's mempool and are likely to be selected by a miner for inclusion in the next block.</p>
</li>
</ol>

CC BY-SA 4.0
2023-03-10T12:00:42.547Z
Thanks for the answer. So there is no way the block can't be loose by just a common transaction making all the work used to mine the block a total waste?
andrealorenzetti
CC BY-SA 4.0
2023-03-10T12:40:47.180Z
The miner of the conflicting block with least work loses their block rewards. They lose the mining reward and lose all the transaction fees. The weakest conflicting block is discarded. The transactions are unaffected because they get included in a later block.
RedGrittyBrick
CC BY-SA 4.0
2023-03-10T11:41:58.540Z
2023-03-10T22:11:34.560Z
2023-03-10T22:11:34.560Z
RedGrittyBrick
<p>I am new in this world and I am trying to understand some simple concept of Blockchain and the propagation of transaction.
Let say that a transaction x is made so from what i understand until now this transaction will be propagate in the network and in particular in the &quot;pool transaction&quot; of the miners. The miners than will take a bunch of transaction, put them in a block and mine the block, than the block is confirmed and propagated to all nodes.
My question is:
there are 2 miners A and B that both receive the x transaction in their pools.
Now, miner A decide to put in a block transaction: &quot;w r t <strong>x</strong>&quot; and start to mine the block.
Miner B decide to put in his block transaction:  &quot;k y <strong>x</strong> l&quot;, and start to mine the block.</p>
<p>Both succeed in mining the block correctly at the same time, but the blocks cannot be both confirmed and added to the blockchain since they contain a common transaction.</p>
<p>1)How is this situation manage by the blockchain?
2)Who performs the check to avoid that two blocks contain totally different transaction?
3)What happens to the transaction that were put in the block that will not be added to the blockchain? If the block is completely wasted it seems to me that a lot of energy was consumed to mine a block that is not validate due to a one transaction over possibly hundreds or thousands and that is pretty frustrating.</p>

<transactions><mining-pools><block><unconfirmed-transactions><blockchain-fork>
How is it resolved when two miners find the block at the same time?
andrealorenzetti
# How is it resolved when two miners find the block at the same time?

(Asked by: username_0 on 2023-03-10)

I am new in this world and I am trying to understand some simple concept of Blockchain and the propagation of transaction.
Let say that a transaction x is made so from what i understand until now this transaction will be propagate in the network and in particular in the "pool transaction" of the miners. The miners than will take a bunch of transaction, put them in a block and mine the block, than the block is confirmed and propagated to all nodes.
My question is:
there are 2 miners A and B that both receive the x transaction in their pools.
Now, miner A decide to put in a block transaction: "w r t **x**" and start to mine the block.
Miner B decide to put in his block transaction: "k y **x** l", and start to mine the block.

Both succeed in mining the block correctly at the same time, but the blocks cannot be both confirmed and added to the blockchain since they contain a common transaction.

1)How is this situation manage by the blockchain?
2)Who performs the check to avoid that two blocks contain totally different transaction?
3)What happens to the transaction that were put in the block that will not be added to the blockchain? If the block is completely wasted it seems to me that a lot of energy was consumed to mine a block that is not validate due to a one transaction over possibly hundreds or thousands and that is pretty frustrating.

**Tags:** transactions, mining-pools, block, unconfirmed-transactions, blockchain-fork


---

## 1 answers

### Answer by username_1 on 2023-03-10. Score: 2 | Accepted answer

1. There will be a Blockchain reorganisation of 1 or 2 blocks. As each node receives a conflicting block it will choose the one with most work. The other will be set aside as a "stale" block. Conflicting blocks have the same parent block and the same block height.
2. Every node performs the check independently. Because each node uses the same rules they end up making the same choice eventually. We say they reach consensus.
3. Transactions made unconfirmed by a reorg go back into the node's mempool and are likely to be selected by a miner for inclusion in the next block.

> **Comments:**
> **username_0**: Thanks for the answer. So there is no way the block can't be loose by just a common transaction making all the work used to mine the block a total waste?  
> **username_1**: The miner of the conflicting block with least work loses their block rewards. They lose the mining reward and lose all the transaction fees. The weakest conflicting block is discarded. The transactions are unaffected because they get included in a later block.  

---

