<p>A few things would happen:</p>
<ul>
<li>The new block would be invalid because it doesnt start with 8 zeros</li>
<li>Even if the bad person managed to mine the new block all the other nodes wont accept it because all the blocks after it would be invalidated and it would no longer be the longer chain, the chain would be 4 blocks long but all the other nodes would have a 10 blocks long chain.</li>
<li>Even if the node managed to mine the block and also mine another 6 blocks on top of it the block would still be invalid because the transaction data (Alice → Bob 10BTC) was signed by Alice’s private key. After altering it to (Alice → Bob 30BTC) the signature is no longer valid because Alice didn’t sign it.</li>
</ul>
<p>So what would actually happen is that all nodes that received the fake block would ban the bad node because it is sending them fake data and would never put it in their blockchain.</p>

CC BY-SA 4.0
2021-10-10T12:42:52.153Z
2021-10-10T12:42:52.153Z
Mike D
<p>I understand that if one bad person(node) tampered one block of his/her blockchain, the block hash data changed completely different.</p>
<p>Let's say each node has 10 indexed blockchain and index4 block has transaction data like [Alice → Bob  10BTC]. Also the block has [00000000b78qgifg20b] hash as a valid data(stars with 8 zeros).</p>
<p>Now, one bad person(node) tampered index4 block's transaction data [Alice → Bob 30BTC] and the hash data changed from [00000000b78qgifg20b] to [f24yoxyn28hk8hohko].</p>
<p>Does this mean new block is created? If so, new block with [f24yoxyn28hk8hohko] is gonna be distributed to all nodes and added to their blockchain as a new mined block?</p>

<blockchain><proof-of-work>
If malicious person(node) tampered withone block transaction, what's gonna happen?
pepperoni
# If malicious person(node) tampered withone block transaction, what's gonna happen?

(Asked by: username_0 on 2021-10-10)

I understand that if one bad person(node) tampered one block of his/her blockchain, the block hash data changed completely different.

Let's say each node has 10 indexed blockchain and index4 block has transaction data like [Alice → Bob 10BTC]. Also the block has [00000000b78qgifg20b] hash as a valid data(stars with 8 zeros).

Now, one bad person(node) tampered index4 block's transaction data [Alice → Bob 30BTC] and the hash data changed from [00000000b78qgifg20b] to [f24yoxyn28hk8hohko].

Does this mean new block is created? If so, new block with [f24yoxyn28hk8hohko] is gonna be distributed to all nodes and added to their blockchain as a new mined block?

**Tags:** blockchain, proof-of-work


---

## 1 answers

### Answer by username_1 on 2021-10-10. Score: 1 | Accepted answer

A few things would happen:

* The new block would be invalid because it doesnt start with 8 zeros
* Even if the bad person managed to mine the new block all the other nodes wont accept it because all the blocks after it would be invalidated and it would no longer be the longer chain, the chain would be 4 blocks long but all the other nodes would have a 10 blocks long chain.
* Even if the node managed to mine the block and also mine another 6 blocks on top of it the block would still be invalid because the transaction data (Alice → Bob 10BTC) was signed by Alice’s private key. After altering it to (Alice → Bob 30BTC) the signature is no longer valid because Alice didn’t sign it.

So what would actually happen is that all nodes that received the fake block would ban the bad node because it is sending them fake data and would never put it in their blockchain.


---

