mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 20:57:10 +00:00
When gloas envelopes are imported optimistically (EL returns SYNCING), the payload status is Pending. Previously, Pending used execution_payload_parent_hash for the head_hash in forkchoiceUpdated, which tells geth to stay at the parent — never advancing. Fix: use execution_payload_block_hash (the bid's committed hash) for Pending status, same as Full. This tells geth to sync to the new head, which is the purpose of optimistic sync. Geth will validate it and transition from SYNCING to VALID on subsequent newPayload calls. Also re-enables backfill sync for gloas with a dedicated import_historical_gloas_block_batch that properly handles RangeSyncBlock::Gloas variants (storing envelopes alongside blocks).