mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2024-11-30 11:58:23 +00:00
Changing the sentence to 'The merkle tree is a binary tree with an even number of leaf nodes.'
This commit is contained in:
parent
c7761d18a4
commit
229e9ce8d0
@ -171,7 +171,7 @@ The process continues until there is only one node at the top, the node known as
|
||||
.Calculating the nodes in a Merkle Tree
|
||||
image::images/MerkleTree.png["merkle_tree"]
|
||||
|
||||
If there is an odd number of transactions to summarize, the last transaction hash will be duplicated to create an even number of leaf nodes, also known as a _balanced tree_. This is shown in the example below, where transaction C is duplicated:
|
||||
The merkle tree is a binary tree with an even number of leaf nodes. If there is an odd number of transactions to summarize, the last transaction hash will be duplicated to create an even number of leaf nodes, also known as a _balanced tree_. This is shown in the example below, where transaction C is duplicated:
|
||||
|
||||
[[merkle_tree_odd]]
|
||||
.An even number of data elements, by duplicating one data element
|
||||
|
Loading…
Reference in New Issue
Block a user