Skip to content

[Feature] Batch Triggers#4190

Open
kaimast wants to merge 10 commits intostagingfrom
feat/batch-triggers
Open

[Feature] Batch Triggers#4190
kaimast wants to merge 10 commits intostagingfrom
feat/batch-triggers

Conversation

@kaimast
Copy link
Copy Markdown
Contributor

@kaimast kaimast commented Mar 30, 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 and the new proposal_task.rs module. The README details when the batch creation task is woken up.

Testing

End-to-end stress tests passed:
Screenshot 2026-03-30 at 5 08 16 PM

@kaimast kaimast force-pushed the feat/batch-triggers branch from 0f2041b to 84e73d5 Compare March 30, 2026 04:30
@kaimast kaimast changed the base branch from staging to chore/update-rand March 30, 2026 22:58
@kaimast kaimast force-pushed the feat/batch-triggers branch from 40ec68f to a51872b Compare March 30, 2026 23:02
@kaimast kaimast force-pushed the chore/update-rand branch from e1694dc to 91692c7 Compare March 30, 2026 23:52
@kaimast kaimast force-pushed the feat/batch-triggers branch from b20642d to a3177c4 Compare March 30, 2026 23:55
Base automatically changed from chore/update-rand to staging March 31, 2026 12:03
@kaimast kaimast marked this pull request as ready for review March 31, 2026 19:39
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.

1 participant