mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 00:24:56 -05:00
Update 0_beacon-chain.md
This commit is contained in:
@@ -695,8 +695,8 @@ def get_deposit_root() -> bytes32:
|
||||
@public
|
||||
@constant
|
||||
def get_merkle_branch(index: uint256) -> bytes32[32]: # size is DEPOSIT_CONTRACT_TREE_DEPTH (symbolic const not supported)
|
||||
index = index + TWO_TO_POWER_OF_TREE_DEPTH
|
||||
branch: bytes32[32] # size is DEPOSIT_CONTRACT_TREE_DEPTH
|
||||
index = index + TWO_TO_POWER_OF_TREE_DEPTH
|
||||
for i in range(DEPOSIT_CONTRACT_TREE_DEPTH):
|
||||
branch[i] = self.deposit_tree[bitwise_xor(index, 1)]
|
||||
index /= 2
|
||||
|
||||
Reference in New Issue
Block a user