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:
vbuterin 2019-02-09 11:10:54 +03:00 committed by GitHub
parent 0157aa039c
commit e48010b77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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