Skip to content

fix: update builder loop to wake up at target block time #23

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

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

anna-carroll
Copy link
Contributor

@anna-carroll anna-carroll commented Dec 6, 2024

this PR makes the sleep time “block-slot-aware”

it targets a configurable interval within the block slot at which it begins building a new block

previously, sleeping a fixed buffer amount will cause the builder to attempt to submit blocks at random times relative to the chain’s block slot time; e.g. it could be attempting to submit 1sec before the slot ends, in which case the submission will almost certainly fail

@anna-carroll anna-carroll self-assigned this Dec 6, 2024
Base automatically changed from anna/rm-poll-tasks to main December 6, 2024 19:28
@anna-carroll anna-carroll force-pushed the anna/update-builder-loop branch from 595cc8b to be716b1 Compare December 6, 2024 19:50
Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

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

solid. just need to update the new env vars, no?

@anna-carroll anna-carroll merged commit 21a4e06 into main Dec 6, 2024
4 checks passed
@anna-carroll anna-carroll deleted the anna/update-builder-loop branch December 6, 2024 20:57
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.

2 participants