<blockquote>
  <p>What i'm asking is, does the contents -transactions- of one block effect the hash of the next block? if so, how it happens?</p>
</blockquote>

<p>Yes. The block hash of <code>block X</code> is explicitly included in the header of <code>block X+1</code>. So if you change the transactions in <code>block X</code>, it will affect the hash of <code>block X</code>, and that would change <code>block X +1</code> as well. </p>

<blockquote>
  <p>For example, lets say that we mined 10 blocks. Then, we hacked block number 5 and changed the transactions.</p>
</blockquote>

<p>The nodes on the network that already know about block 10 would not accept your new block 5 because it is a shorter chain (less work than the chain that is at block 10). They can recognize the new block 5 as being altered because the longer chain does not include it. </p>

CC BY-SA 4.0
2019-06-03T05:35:09.940Z
2019-06-03T05:35:09.940Z
chytrik
<p>What I understand about blockchain is that: 
Blocks are secured by the hash. 
Transactions are secured by the markle-tree.</p>

<p>What i'm asking is, does the contents -transactions- of one block effect the hash of the next block? if so, how it happens?  </p>

<p>If not, doesn't this mean that we can manipulate the transactions inside a block? because if we do so, the next block will have no idea what happens the previous block.</p>

<p>For example, lets say that we mined 10 blocks.</p>

<p>Then, we hacked block number 5 and changed the transactions.</p>

<p>How is this going to effect blocks number 6, 7,....?</p>

<p>I understand that if the majority of the nodes have the same values then the blockchain will be safe.</p>

<p>But what about a small blockchain owned by one node. In theory, does this mean that the block contents can be manipulated very easily?</p>

<p>Thank you</p>

<blockchain>
Is the transactions in one block effect the hash of the next block? How?
l Wawa
# Is the transactions in one block effect the hash of the next block? How?

(Asked by: username_0 on 2019-06-03)

What I understand about blockchain is that:
Blocks are secured by the hash.
Transactions are secured by the markle-tree.

What i'm asking is, does the contents -transactions- of one block effect the hash of the next block? if so, how it happens?

If not, doesn't this mean that we can manipulate the transactions inside a block? because if we do so, the next block will have no idea what happens the previous block.

For example, lets say that we mined 10 blocks.

Then, we hacked block number 5 and changed the transactions.

How is this going to effect blocks number 6, 7,....?

I understand that if the majority of the nodes have the same values then the blockchain will be safe.

But what about a small blockchain owned by one node. In theory, does this mean that the block contents can be manipulated very easily?

Thank you

**Tags:** blockchain


---

## 1 answers

### Answer by username_1 on 2019-06-03. Score: 1

> What i'm asking is, does the contents -transactions- of one block effect the hash of the next block? if so, how it happens?

Yes. The block hash of `block X` is explicitly included in the header of `block X+1`. So if you change the transactions in `block X`, it will affect the hash of `block X`, and that would change `block X +1` as well.

> For example, lets say that we mined 10 blocks. Then, we hacked block number 5 and changed the transactions.

The nodes on the network that already know about block 10 would not accept your new block 5 because it is a shorter chain (less work than the chain that is at block 10). They can recognize the new block 5 as being altered because the longer chain does not include it.


---

