mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-21 06:48:12 +00:00
Proper return after second assertion
This commit is contained in:
parent
c144844279
commit
0ae9a10123
@ -116,6 +116,7 @@ def validate_merge_block(block: BeaconBlock) -> None:
|
||||
# If `TERMINAL_BLOCK_HASH` is used as an override, the activation epoch must be reached.
|
||||
assert compute_epoch_at_slot(block.slot) >= TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH
|
||||
assert block.body.execution_payload.parent_hash == TERMINAL_BLOCK_HASH
|
||||
return
|
||||
|
||||
pow_block = get_pow_block(block.body.execution_payload.parent_hash)
|
||||
# Check if `pow_block` is available
|
||||
|
Loading…
x
Reference in New Issue
Block a user