diff --git a/specs/merge/fork-choice.md b/specs/merge/fork-choice.md index 59dc8bad2..b2e43d94b 100644 --- a/specs/merge/fork-choice.md +++ b/specs/merge/fork-choice.md @@ -98,7 +98,7 @@ Let `get_pow_block(block_hash: Hash32) -> PowBlock` be the function that given t ```python def get_transition_store(anchor_pow_block: PowBlock): - transition_total_difficulty = pow_block.total_difficulty + TRANSITION_TOTAL_DIFFICULTY_OFFSET + transition_total_difficulty = anchor_pow_block.total_difficulty + TRANSITION_TOTAL_DIFFICULTY_OFFSET return TransitionStore(transition_total_difficulty=transition_total_difficulty) ``` diff --git a/specs/merge/validator.md b/specs/merge/validator.md index 5b82030e0..89b7a3c94 100644 --- a/specs/merge/validator.md +++ b/specs/merge/validator.md @@ -70,7 +70,9 @@ Let `get_pow_chain_head() -> PowBlock` be the function that returns the head of * Set `block.body.execution_payload = get_execution_payload(state, transition_store, execution_engine)` where: ```python -def get_execution_payload(state: BeaconState, transition_store: TransitionStore, execution_engine: ExecutionEngine) -> ExecutionPayload: +def get_execution_payload(state: BeaconState, + transition_store: TransitionStore, + execution_engine: ExecutionEngine) -> ExecutionPayload: if not is_transition_completed(state): pow_block = get_pow_chain_head() if not is_valid_transition_block(transition_store, pow_block):