Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define endpoints for light client sync #247

Merged
merged 6 commits into from
Oct 10, 2022

Commits on Sep 22, 2022

  1. Define endpoints for light client sync

    Introduces additional REST endpoints for light client sync, compatible
    with the libp2p specification defined in `ethereum/consensus-specs`:
    https://github.com/ethereum/consensus-specs/blob/v1.2.0-rc.3/specs/altair/light-client/p2p-interface.md
    
    Endpoints are defined to be fork-aware to allow potential optimizations
    such as including EL block hash into `BeaconBlockHeader` in the future.
    
    The `getLightClientUpdatesByRange` endpoint is a new kind of endpoint,
    as it introduces the concept of list responses. Each list item could
    potentially be of a different fork. Likewise, for the events stream,
    the fork may update between events. Both the list response and the event
    are additionall wrapped with a per-item `version` indicator in JSON.
    For SSZ, the list items are encoded as length/version/payload triples.
    Note that the events endpoint does not support the SSZ format.
    
    This builds on prior work from:
    - @dapplion at ethereum#181
    
    The proof endpoint in that PR is out-of-scope here, but could be useful
    as part of the debug API as an `eth_getProof` equivalent for CL data.
    etan-status committed Sep 22, 2022
    1 Configuration menu
    Copy the full SHA
    acc7526 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Configuration menu
    Copy the full SHA
    1705d16 View commit details
    Browse the repository at this point in the history
  2. Fix lint issues

    etan-status committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    846fe8a View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2022

  1. Configuration menu
    Copy the full SHA
    4a804de View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    71d9df1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f99ef97 View commit details
    Browse the repository at this point in the history