mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-21 06:48:12 +00:00
Use correct payload block hash
This commit is contained in:
parent
a45ee9bf5b
commit
c9d7b8533c
@ -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.block_hash == TERMINAL_BLOCK_HASH
|
||||
return 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…
x
Reference in New Issue
Block a user