We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0258cc0 commit a814e5cCopy full SHA for a814e5c
1 file changed
beacon_chain/consensus_object_pools/attestation_pool.nim
@@ -882,8 +882,10 @@ proc getBeaconHead*(
882
.get(ZERO_HASH)
883
884
# https://github.com/ethereum/consensus-specs/blob/v1.7.0-alpha.4/fork_choice/safe-block.md#get_safe_execution_block_hash
885
- safeBlockRoot = pool.forkChoice.retrieve_fast_confirmed_root()
886
- safeBlock = pool.dag.getBlockRef(safeBlockRoot)
+ # Use the justified checkpoint root as the safe block reported to the
+ # execution client via `engine_forkchoiceUpdated`.
887
+ safeBlock = pool.dag.getBlockRef(
888
+ pool.forkChoice.checkpoints.justified.checkpoint.root)
889
safeExecutionBlockHash =
890
if safeBlock.isErr:
891
# If finality already advanced beyond the current safe block,
0 commit comments