change proof_is_valid to exit condition

This commit is contained in:
Danny Ryan 2019-02-09 07:21:38 -08:00 committed by GitHub
parent e48010b77b
commit 7886d96186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 24 deletions

View File

@ -1259,7 +1259,9 @@ def process_deposit(state: BeaconState,
withdrawal_credentials,
)
if proof_is_valid:
if not proof_is_valid:
return
validator_pubkeys = [v.pubkey for v in state.validator_registry]
if pubkey not in validator_pubkeys: