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

feat: flush batches at the top of the hour #46

Conversation

smrz2001
Copy link
Collaborator

@smrz2001 smrz2001 commented Oct 2, 2024

The CAS Scheduler is responsible for generating batches for CAS Anchor Workers to anchor to Ethereum. Normally, it generates a batch either when it is full, or when its linger time has expired.

This PR adds another option where a batch will also be generated at a configurable interval. This allows batches to be generated at the top of the hour, allowing C1 nodes to ensure that they can submit their roots slightly before the top of the hour and get them included in the immediate next batch.

Without this option, C1 roots might end up waiting the full batch linger duration before they get included in a batch, which in turn might cause anchoring of events to get delayed by up to 1-2 hours, which is undesirable.

@smrz2001 smrz2001 self-assigned this Oct 2, 2024
@smrz2001 smrz2001 merged commit 25b34a3 into develop Oct 3, 2024
2 checks passed
@smrz2001 smrz2001 deleted the feature/aes-350-update-cas-scheduler-to-create-a-new-batch-just-after-the branch October 3, 2024 17:09
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