Lint fails, it should be assert?
This commit is contained in:
parent
c9d7b8533c
commit
c144844279
|
@ -115,7 +115,7 @@ def validate_merge_block(block: BeaconBlock) -> None:
|
|||
if TERMINAL_BLOCK_HASH != Hash32():
|
||||
# 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
|
||||
return block.body.execution_payload.parent_hash == TERMINAL_BLOCK_HASH
|
||||
assert block.body.execution_payload.parent_hash == TERMINAL_BLOCK_HASH
|
||||
|
||||
pow_block = get_pow_block(block.body.execution_payload.parent_hash)
|
||||
# Check if `pow_block` is available
|
||||
|
|
Loading…
Reference in New Issue