minor formatting

This commit is contained in:
Danny Ryan 2019-03-12 11:07:20 -06:00
parent bdaba00a58
commit 25f6647ef2
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A

View File

@ -1312,7 +1312,7 @@ def process_deposit(state: BeaconState, deposit: Deposit) -> None:
if pubkey not in validator_pubkeys: if pubkey not in validator_pubkeys:
# Verify the proof of possession # Verify the proof of possession
if not bls_verify( proof_is_valid = bls_verify(
pubkey=deposit_input.pubkey, pubkey=deposit_input.pubkey,
message_hash=signed_root(deposit_input), message_hash=signed_root(deposit_input),
signature=deposit_input.proof_of_possession, signature=deposit_input.proof_of_possession,
@ -1321,7 +1321,8 @@ def process_deposit(state: BeaconState, deposit: Deposit) -> None:
get_current_epoch(state), get_current_epoch(state),
DOMAIN_DEPOSIT, DOMAIN_DEPOSIT,
) )
): )
if not proof_is_valid:
return return
# Add new validator # Add new validator