mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 21:16:52 +00:00
Update 0_beacon-chain.md
This commit is contained in:
parent
1a4973171f
commit
c8ff723514
@ -1529,9 +1529,9 @@ def verify_merkle_branch(leaf: Hash32, branch: [Hash32], depth: int, index: int,
|
|||||||
value = leaf
|
value = leaf
|
||||||
for i in range(depth):
|
for i in range(depth):
|
||||||
if index % 2:
|
if index % 2:
|
||||||
value = hash(branch[i], value)
|
value = hash(branch[i] + value)
|
||||||
else:
|
else:
|
||||||
value = hash(value, branch[i])
|
value = hash(value + branch[i])
|
||||||
return value == root
|
return value == root
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user