<blockquote>
  <p>in this case will the block be invalid as it hold a previous hash value which is not the latest block? </p>
</blockquote>

<p>Yes. The miner will construct a new block template, that builds off the newest valid block, and continue to mine on the new template. </p>

<p>If they continued to mine on the old block, they would likely end up wasting resources, as the rest of the network will have begun following the new, longer (more work) chain. </p>

CC BY-SA 4.0
2019-12-09T00:02:53.033Z
2019-12-09T00:02:53.033Z
chytrik
<p>What if a miner starts to generate a new block hash based on trans data,latest block hash , timestamp and nonce  , then in the middle of the work a new block has been added by another miner. 
in this case will the block be invalid as it hold a previous hash value which is not the latest block ? </p>

<blockchain><mining-pools>
mining Blockchain Blocks
Mohsen M. Galal
# mining Blockchain Blocks

(Asked by: username_0 on 2019-12-08)

What if a miner starts to generate a new block hash based on trans data,latest block hash , timestamp and nonce , then in the middle of the work a new block has been added by another miner.
in this case will the block be invalid as it hold a previous hash value which is not the latest block ?

**Tags:** blockchain, mining-pools


---

## 1 answers

### Answer by username_1 on 2019-12-09. Score: 2

> in this case will the block be invalid as it hold a previous hash value which is not the latest block?

Yes. The miner will construct a new block template, that builds off the newest valid block, and continue to mine on the new template.

If they continued to mine on the old block, they would likely end up wasting resources, as the rest of the network will have begun following the new, longer (more work) chain.


---

