change proof_is_valid to exit condition
This commit is contained in:
parent
e48010b77b
commit
7886d96186
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue