Update mmr.md (#3024)

This commit is contained in:
Nikolay Volf 2019-09-10 18:50:10 +03:00 committed by Antioch Peverell
parent d90b1c2723
commit 108b640c22

View file

@ -94,6 +94,8 @@ total size). We process iteratively for a MMR of size 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
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