mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-14 20:54:27 +00:00
minor formatting
This commit is contained in:
parent
bdaba00a58
commit
25f6647ef2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user