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

Refactor Late Block Tasks #12469

Closed
wants to merge 2 commits into from
Closed

Refactor Late Block Tasks #12469

wants to merge 2 commits into from

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented May 26, 2023

What type of PR is this?

Optimization

What does this PR do? Why is it needed?

Refactors our late blocks method to only send FCUs for active proposers or if we use the PrepareAllPayloads feature. This importantly only updates our next slot cache after the FCU is sent to allow the EL to have a bit longer to start preparing their payload.

Which issues(s) does this PR fix?

Alternative to #12462

Other notes for review

// Head root should be empty when retrieving proposer index for the next slot.
_, id, has := s.cfg.ProposerSlotIndexCache.GetProposerPayloadIDs(s.CurrentSlot()+1, [32]byte{} /* head root */)
// There exists proposer for next slot, but we haven't called fcu w/ payload attribute yet.
if (has && id == [8]byte{}) || features.Get().PrepareAllPayloads {
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't work, this will call fcu even after a timely block if the prepare-all-payloads flag is used

@nisdas
Copy link
Member Author

nisdas commented Jun 6, 2023

No longer relevant

@nisdas nisdas closed this Jun 6, 2023
@nisdas nisdas deleted the refactorLateTasks branch June 6, 2023 03:00
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.

3 participants