<p>Miners don't change the hash of a published block, they change the nonce of a block template until the resulting hash is less than the target and only then publish the block.</p>
<p>So until then, there are no other copies that need changing and there are no other blocks that refer to the older failed versions of the published block.</p>

CC BY-SA 4.0
2021-05-16T10:07:03.223Z
you mean they actually add new block and nothing is getting changed in previous block or already  published block?
Aman
CC BY-SA 4.0
2021-05-16T10:11:08.653Z
@Aman: That is correct.
RedGrittyBrick
CC BY-SA 4.0
2021-05-16T10:13:16.473Z
Thanks for this. nothing is more usefull on the internet for this confusion hence asked the question, as you can see other asnwer on this thread is also not clear.

Thank you.
Aman
CC BY-SA 4.0
2021-05-16T09:50:39.727Z
2021-05-16T09:50:39.727Z
RedGrittyBrick
<p>I am studing blockhain and i know that a block hash is linked to the next block in previous hash and it cant be changed for valid reason.</p>
<p>Reason is : because if someone have changed hash then then he/she would have to change in hundreds or millions of nodes/system also otherwise it wont be valid.</p>
<p>My question is :
If nonce will be changed by some miner then the hash will also get changed and it should be changing the next block's previous hash.
correct me if i am wrong. I mean if a miner can change the hash of a block then how he can replicate that hash in all the nodes or system for that block? this is confusing.</p>

<bitcoin-core><blockchain>
If nonce can change the hash then it should be changing the next block's previous hash?
Aman
# If nonce can change the hash then it should be changing the next block's previous hash?

(Asked by: username_0 on 2021-05-16)

I am studing blockhain and i know that a block hash is linked to the next block in previous hash and it cant be changed for valid reason.

Reason is : because if someone have changed hash then then he/she would have to change in hundreds or millions of nodes/system also otherwise it wont be valid.

My question is :
If nonce will be changed by some miner then the hash will also get changed and it should be changing the next block's previous hash.
correct me if i am wrong. I mean if a miner can change the hash of a block then how he can replicate that hash in all the nodes or system for that block? this is confusing.

**Tags:** bitcoin-core, blockchain


---

## 1 answers

### Answer by username_1 on 2021-05-16. Score: 2 | Accepted answer

Miners don't change the hash of a published block, they change the nonce of a block template until the resulting hash is less than the target and only then publish the block.

So until then, there are no other copies that need changing and there are no other blocks that refer to the older failed versions of the published block.

> **Comments:**
> **username_0**: you mean they actually add new block and nothing is getting changed in previous block or already  published block?  
> **username_1**: @username_0: That is correct.  
> **username_0**: Thanks for this. nothing is more usefull on the internet for this confusion hence asked the question, as you can see other asnwer on this thread is also not clear.  Thank you.  

---

