mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Update mmr.md (#3024)
This commit is contained in:
parent
d90b1c2723
commit
108b640c22
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,8 @@ total size). We process iteratively for a MMR of size 11:
|
||||||
2^4 - 1 = 15, and 15 is not < 11
|
2^4 - 1 = 15, and 15 is not < 11
|
||||||
```
|
```
|
||||||
|
|
||||||
|
(This can also be calculated non-iteratively as `2^(binary logarithm of size + 1) - 1`
|
||||||
|
|
||||||
Therefore the first peak is 7. To find the next peak, we then need to "jump" to
|
Therefore the first peak is 7. To find the next peak, we then need to "jump" to
|
||||||
its right sibling. If that node is not in the MMR (and it won't), take its left
|
its right sibling. If that node is not in the MMR (and it won't), take its left
|
||||||
child. If that child is not in the MMR either, keep taking its left child
|
child. If that child is not in the MMR either, keep taking its left child
|
||||||
|
|
Loading…
Reference in a new issue