Proper return after second assertion

This commit is contained in:
terence tsao
2021-11-04 06:59:13 -07:00
committed by GitHub
parent c144844279
commit 0ae9a10123

View File

@@ -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