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

feat(beacon): validate HistoricalSummariesWithProof if finalized state root is available #1491

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

ogenev
Copy link
Member

@ogenev ogenev commented Sep 26, 2024

What was wrong?

When the beacon light client is not synced, we can't process a HistoricalSummariesWithProof content to a FindContent request.

How was it fixed?

Validate HistoricalSummariesWithProof against the state root if the light client finalized root is available.

To-Do

@ogenev ogenev self-assigned this Sep 26, 2024
@ogenev ogenev added the beacon network Issue related to portal beacon network label Sep 26, 2024
@ogenev ogenev marked this pull request as ready for review September 26, 2024 11:07
latest_finalized_root,
)
.await?;
if let Ok(latest_finalized_root) = latest_finalized_root {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it worth logging a warn! here in the case that the latest_finalized_root is not available?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a debug! log because this is expected to happen if the light client is not synced.

Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

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

:shipit:

@ogenev ogenev force-pushed the historical-summaries-validation branch from a721107 to 9bf7d3a Compare September 27, 2024 09:30
@ogenev ogenev merged commit 9e71e5c into ethereum:master Sep 27, 2024
9 checks passed
@ogenev ogenev deleted the historical-summaries-validation branch September 27, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beacon network Issue related to portal beacon network
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants