@@ -608,7 +608,7 @@ For each `challenge` in `block.body.branch_challenges`, run:
608608
609609``` python
610610def process_branch_challenge (state : BeaconState,
611- challenge : BranchChallenge):
611+ challenge : BranchChallenge) -> None :
612612 # Check that it's not too late to challenge
613613 assert slot_to_epoch(challenge.attestation.data.slot) >= get_current_epoch(state) - MAX_BRANCH_CHALLENGE_DELAY
614614 assert state.validator_registry[responder_index].exit_epoch >= get_current_epoch(state) - MAX_BRANCH_CHALLENGE_DELAY
@@ -644,7 +644,7 @@ For each `response` in `block.body.branch_responses`, if `response.responding_to
644644
645645``` python
646646def process_branch_exploration_response (state : BeaconState,
647- response : BranchResponse):
647+ response : BranchResponse) -> None :
648648 challenge = get_branch_challenge_record_by_id(response.challenge_id)
649649 assert verify_merkle_branch(
650650 leaf = response.data,
@@ -665,7 +665,7 @@ If `response.responding_to_custody_challenge == True`, run:
665665
666666``` python
667667def process_branch_custody_response (state : BeaconState,
668- response : BranchResponse):
668+ response : BranchResponse) -> None :
669669 challenge = get_custody_challenge_record_by_id(response.challenge_id)
670670 responder = state.validator_registry[challenge.responder_index]
671671 # Verify we're not too late
@@ -719,7 +719,7 @@ For each `initiation` in `block.body.interactive_custody_challenge_initiations`,
719719
720720``` python
721721def process_initiation (state : BeaconState,
722- initiation : InteractiveCustodyChallengeInitiation):
722+ initiation : InteractiveCustodyChallengeInitiation) -> None :
723723 challenger = state.validator_registry[initiation.challenger_index]
724724 responder = state.validator_registry[initiation.responder_index]
725725 # Verify the signature
@@ -772,7 +772,7 @@ For each `response` in `block.body.interactive_custody_challenge_responses`, use
772772
773773``` python
774774def process_response (state : BeaconState,
775- response : InteractiveCustodyChallengeResponse):
775+ response : InteractiveCustodyChallengeResponse) -> None :
776776 challenge = get_custody_challenge_record_by_id(state, response.challenge_id)
777777 responder = state.validator_registry[challenge.responder_index]
778778 # Check that the right number of hashes was provided
@@ -805,7 +805,7 @@ For each `continuation` in `block.body.interactive_custody_challenge_continuatio
805805
806806``` python
807807def process_continuation (state : BeaconState,
808- continuation : InteractiveCustodyChallengeContinuation):
808+ continuation : InteractiveCustodyChallengeContinuation) -> None :
809809 challenge = get_custody_challenge_record_by_id(state, continuation.challenge_id)
810810 challenger = state.validator_registry[challenge.challenger_index]
811811 responder = state.validator_registry[challenge.responder_index]
0 commit comments