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

Poll block proposer duties before an epoch starts #5792

Closed
twoeths opened this issue Jul 24, 2023 · 2 comments · Fixed by #5794
Closed

Poll block proposer duties before an epoch starts #5792

twoeths opened this issue Jul 24, 2023 · 2 comments · Fixed by #5794
Labels
meta-feature-request Issues to track feature requests.

Comments

@twoeths
Copy link
Contributor

twoeths commented Jul 24, 2023

Problem description

Right now Lodestar has a risk of missing block proposal at start slot of epoch since it has to poll for proposer duties (and due to I/O lag it may take up to 2s for it which make the block proposal very late into the slot)

Solution description

We already have PrepareNextSlotScheduler run at 2/3 of slot, if we can make sure it runs in less than 2s consistently we can poll for block proposer duties for next epoch 2s before the slot

One blocker for this is #5409

Additional context

No response

@twoeths twoeths added the meta-feature-request Issues to track feature requests. label Jul 24, 2023
@twoeths twoeths changed the title Poll block proposer duties before a slot starts Poll block proposer duties before an epoch starts Jul 24, 2023
@twoeths
Copy link
Contributor Author

twoeths commented Jul 24, 2023

state transition runs in <3s a lot of time so I think we can poll next epoch's proposer duties 1s in advance

Screenshot 2023-07-24 at 14 44 38

once we improve epoch transition time to be consistently <2s, we can run this 2s before next epoch

@twoeths
Copy link
Contributor Author

twoeths commented Jul 24, 2023

To add more context, normally getProposerDuties is very fast but due to I/O lag issue sometimes it's up to 2s, that's why I'd like to improve epoch transition and poll proposer duties 2s before next epoch

Screenshot 2023-07-24 at 15 28 18
Jul-23 12:06:47.012[]                ^[[34mdebug^[[39m: HttpClient request routeId=getProposerDuties
Jul-23 12:06:49.165[]                ^[[34mdebug^[[39m: HttpClient response routeId=getProposerDuties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta-feature-request Issues to track feature requests.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant