Hard assert that the Merkle branch is valid
This commit is contained in:
parent
a9be1018d3
commit
236298a8e4
|
@ -1269,8 +1269,7 @@ def process_deposit(state: BeaconState, deposit: Deposit) -> None:
|
||||||
index=deposit.index,
|
index=deposit.index,
|
||||||
root=state.latest_eth1_data.deposit_root
|
root=state.latest_eth1_data.deposit_root
|
||||||
)
|
)
|
||||||
if not merkle_branch_is_valid:
|
assert merkle_branch_is_valid
|
||||||
return
|
|
||||||
|
|
||||||
# Increment the next deposit index we are expecting. Note that this
|
# Increment the next deposit index we are expecting. Note that this
|
||||||
# needs to be done here because while the deposit contract will never
|
# needs to be done here because while the deposit contract will never
|
||||||
|
|
Loading…
Reference in New Issue