Change var name to avoid confusing the reader into thinking the `valid_proof` variable contains a valid proof as opposed to just being a bool.
Co-Authored-By: Nashatyrev <Nashatyrev@users.noreply.github.com>
This commit is contained in:
parent
0157aa039c
commit
e48010b77b
|
@ -1259,7 +1259,7 @@ def process_deposit(state: BeaconState,
|
|||
withdrawal_credentials,
|
||||
)
|
||||
|
||||
if valid_proof:
|
||||
if proof_is_valid:
|
||||
validator_pubkeys = [v.pubkey for v in state.validator_registry]
|
||||
|
||||
if pubkey not in validator_pubkeys:
|
||||
|
|
Loading…
Reference in New Issue