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

Add EIP: Light client data backfill #8341

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Conversation

etan-status
Copy link
Contributor

No description provided.

@etan-status etan-status requested a review from eth-bot as a code owner March 21, 2024 01:23
@eth-bot
Copy link
Collaborator

eth-bot commented Mar 21, 2024

✅ All reviewers have approved.

@eth-bot eth-bot added e-consensus Waiting on editor consensus e-review Waiting on editor to review labels Mar 21, 2024
Copy link

The commit 8d9a323 (as a parent of aa3ae6f) contains errors.
Please inspect the Run Summary for details.

@github-actions github-actions bot added the w-ci Waiting on CI to pass label Mar 21, 2024
EIPS/eip-####.md Outdated
@@ -0,0 +1,182 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
---
---
eip: 7658

Assigning next sequential EIP/ERC/RIP number.
Numbering changed to sequential from 7500.

Please also update the filename.

EIPS/eip-####.md Outdated
title: Light client data backfill
description: Mechanism for syncing light client data
author: Etan Kissling (@etan-status)
discussions-to: https://ethereum-magicians.org/t/eip-light-client-data-backfill/19290
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
discussions-to: https://ethereum-magicians.org/t/eip-light-client-data-backfill/19290
discussions-to: https://ethereum-magicians.org/t/eip-7658-light-client-data-backfill/19290

@github-actions github-actions bot added c-new Creates a brand new proposal s-draft This EIP is a Draft t-core and removed w-ci Waiting on CI to pass labels Mar 22, 2024
Once the data is available in the `BeaconState`, a light client data backfill protocol could be defined that serves, for past periods:

1. A `LightClientUpdate` from requested `period` + 1 that proves that the entirety of `period` is finalized.
2. `BeaconState.historical_summaries[period].block_summary_root` at (1)'s `attested_header.beacon.state_root` + Merkle proof.
Copy link
Contributor

@g11tech g11tech Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also can we use current beacon state to look for block summary root as well ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "current" beacon state is not signed by the sync committee, so basing this on attested_header's BeaconState makes more sense. Also, the full historical block / state roots (not just summary) are only available for recent history.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current meaning from where we are starting backfill assuming its a trusted point right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. as it's a backward sync direction, trust is implicitly there.

EIPS/eip-7658.md Outdated Show resolved Hide resolved
Co-authored-by: g11tech <develop@g11tech.io>
@eth-bot eth-bot enabled auto-merge (squash) April 16, 2024 15:02
Copy link
Collaborator

@eth-bot eth-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All Reviewers Have Approved; Performing Automatic Merge...

@eth-bot eth-bot merged commit 4598c64 into ethereum:master Apr 16, 2024
11 of 12 checks passed
@etan-status etan-status deleted the ef-backfill branch April 16, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-new Creates a brand new proposal e-consensus Waiting on editor consensus e-review Waiting on editor to review s-draft This EIP is a Draft t-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants