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

Use correct pre state to call new payload #10416

Merged
merged 301 commits into from
Mar 25, 2022
Merged

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Mar 24, 2022

This PR uses the correct pre-state to call a new payload. Revert the refactor from #10398 but still insertBlockToForkChoiceStore before notifyNewPayload

EDIT:
Based on comment #10416 (comment)

I implemented

  • Refactor notifyNewPayload to take in post state's version and header instead of post_state
  • Cache both pre and post state's version_and_headers to be used to notify new payload after signature validation
  • Add IsExecutionEnabledUsingHeader which deprecates ExecutionEnabled. The formal does not require input beacon state

terencechain and others added 30 commits October 5, 2021 14:41
@terencechain terencechain requested a review from a team as a code owner March 24, 2022 05:18

sigSet.Join(set)
}
verify, err := sigSet.Verify()
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if the signature does not verify, don't we end up with a bad block in forkchoice anyway?

@terencechain terencechain added Ready For Review A pull request ready for code review OK to merge Merge PRs related to the great milestone the merge labels Mar 24, 2022
@prylabs-bulldozer prylabs-bulldozer bot merged commit 1922416 into develop Mar 25, 2022
@delete-merged-branch delete-merged-branch bot deleted the use-correct-pre-state branch March 25, 2022 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge PRs related to the great milestone the merge Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants