Skip to content

Gloas lookup sync fixes (rebased on unstable)#73

Closed
dapplion wants to merge 5 commits intounstablefrom
gloas-lookup-sync-fixes-v2
Closed

Gloas lookup sync fixes (rebased on unstable)#73
dapplion wants to merge 5 commits intounstablefrom
gloas-lookup-sync-fixes-v2

Conversation

@dapplion
Copy link
Copy Markdown
Owner

@dapplion dapplion commented Apr 7, 2026

Summary

Rebased version of #68 on current sigp/unstable with PayloadEnvelopesByRoot RPC wiring.

Changes from #68 (cherry-picked)

  • Gloas lookup sync state machine rewrite (single_block_lookup.rs)
  • Fix genesis parent + infinite retry loop
  • Address full parent missing payload
  • Fix on_completed_request no-op + clear all peer sets on disconnect

New: Wire PayloadEnvelopesByRoot RPC

Replaces the placeholder payload_lookup_request (which returned NoRequestNeeded) with actual RPC wiring:

  • network_context: sends PayloadEnvelopesByRoot request, tracks in ActiveRequests
  • router: forwards responses to sync manager
  • manager: dispatches to block_lookups
  • single_block_lookup: updates PayloadRequest state machine
  • New PayloadEnvelopesByRootRequestItems request accumulator

Test plan

  • Compile check (passes)
  • Test on local Kurtosis ePBS devnet
  • Verify envelope downloads work during single block lookups at head

dapplion and others added 5 commits April 7, 2026 04:45
- Don't return ParentUnknown for zero-hash (genesis) parent

- Track failed_processing counter to prevent infinite retries

All 85 network tests pass
Replace the placeholder `payload_lookup_request` with actual RPC
wiring. The full path is now:

- network_context: sends PayloadEnvelopesByRoot request to peer
- router: forwards responses to sync manager
- manager: dispatches to block_lookups
- single_block_lookup: updates PayloadRequest state machine

This enables lookups to actually download envelopes from peers
instead of returning NoRequestNeeded.
@dapplion
Copy link
Copy Markdown
Owner Author

dapplion commented Apr 7, 2026

Pushed to #68 instead

@dapplion dapplion closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants