Skip to content

fix: publish empty batches to avoid staled rounds #692

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 2 commits into from
Aug 7, 2025
Merged

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Aug 6, 2025

After we changed the 0k checker node to run all task as quickly as possible (see https://github.com/CheckerNetwork/spark-0k-checker/pull/26), we are hitting a deadlock where no measurements are reported towards the end of the round, and as a result, the round is never advanced.

In this patch, I am changing the publisher to commit a CID for an empty file (bafkqaaa) when no measurements were recorded.

After we changed the 0k checker node to run all task as quickly as
possible, we are hitting a deadlock where no measurements are reported
towards the end of the round, and as a result, the round is never
advanced.

In this patch, I am changing the publisher to commit a CID for an empty
file (bafkqaaa) when no measurements were recorded.

Signed-off-by: Miroslav Bajtoš <[email protected]>
Copy link
Contributor

@pyropy pyropy left a comment

Choose a reason for hiding this comment

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

Great job on figuring this out!

@pyropy pyropy merged commit 561a3ac into main Aug 7, 2025
8 checks passed
@pyropy pyropy deleted the fix-stale-rounds branch August 7, 2025 07:58
@github-project-automation github-project-automation bot moved this to ✅ done in CheckerNetwork Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants