Skip to content

[Feature] Batch creation and round advancement improvements#4149

Closed
kaimast wants to merge 5 commits intoProvableHQ:fix/sync-race-conditionsfrom
kaimast:feat/batch-triggers
Closed

[Feature] Batch creation and round advancement improvements#4149
kaimast wants to merge 5 commits intoProvableHQ:fix/sync-race-conditionsfrom
kaimast:feat/batch-triggers

Conversation

@kaimast
Copy link
Copy Markdown
Contributor

@kaimast kaimast commented Mar 10, 2026

This PR changes the batch creation task, to trigger on certain events, instead of only periodically. The goal is to avoid cases where a node is not ready to propose and then waits another MIN_BATCH_DELAY (1s) instead of only for the relevant conditions. It also ensures that the batch delay timer is reset whenever the node advances.

The most important changes in this PR are in Primary::start_handlers. The README details when the batch creation task is woken up.

@kaimast kaimast changed the base branch from staging to fix/sync-race-conditions March 10, 2026 05:14
@kaimast kaimast force-pushed the feat/batch-triggers branch from 9a86159 to 382ea15 Compare March 24, 2026 20:44
@kaimast kaimast changed the title Batch creation and round advancement improvements [Feature] Batch creation and round advancement improvements Mar 24, 2026
@kaimast kaimast force-pushed the feat/batch-triggers branch from 382ea15 to 2ff358f Compare March 24, 2026 21:03
@vicsn vicsn deleted the branch ProvableHQ:fix/sync-race-conditions March 25, 2026 15:06
@vicsn vicsn closed this Mar 25, 2026
@kaimast
Copy link
Copy Markdown
Contributor Author

kaimast commented Apr 1, 2026

This PR was replaced by #4190.

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