<p>Once the mining pool has the list of all of the transactions they are including in that block, they calculate the merkle root for this list of transactions, then they distribute the block header, that includes the merkle root, to miners to work on.</p>
<p>So, no, it's not constantly being updated, unless for some reason a new transaction was being added or removed from the list of transactions being included in the block.</p>

CC BY-SA 4.0
2021-02-02T20:20:40.953Z
2021-02-02T20:20:40.953Z
ieatpizza
<p>So, pretty much just the title. I'm just wondering how the Merkle Root works exactly. I know it's the result of pairing transactions and then hashing them until the last transaction in the block, but when is this done? Is it constantly updated while the block is getting mined, or is the Merkle Root only calculated when the block is completed?</p>
<p>Thanks.</p>

<blockchain><block><merkle-tree><block-header>
Does the Merkle Root get constantly updated inside the block or does it only get added once the block is completed?
L M 
# Does the Merkle Root get constantly updated inside the block or does it only get added once the block is completed?

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

So, pretty much just the title. I'm just wondering how the Merkle Root works exactly. I know it's the result of pairing transactions and then hashing them until the last transaction in the block, but when is this done? Is it constantly updated while the block is getting mined, or is the Merkle Root only calculated when the block is completed?

Thanks.

**Tags:** blockchain, block, merkle-tree, block-header


---

## 1 answers

### Answer by username_1 on 2021-02-02. Score: 4 | Accepted answer

Once the mining pool has the list of all of the transactions they are including in that block, they calculate the merkle root for this list of transactions, then they distribute the block header, that includes the merkle root, to miners to work on.

So, no, it's not constantly being updated, unless for some reason a new transaction was being added or removed from the list of transactions being included in the block.


---

