Hard assert that the Merkle branch is valid

This commit is contained in:
vbuterin 2019-03-01 03:58:18 -06:00 committed by GitHub
parent a9be1018d3
commit 236298a8e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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