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

Fix: explicit burnchain checks in miner thread #5717

Merged
merged 8 commits into from
Jan 17, 2025

Conversation

kantai
Copy link
Member

@kantai kantai commented Jan 16, 2025

Description

This fixes an issue in #5515 where a BlockFound { late: true } mining thread would stay alive after a new burn block arrived (this caused flake in a previous test I wrote for that PR). This PR includes a test that consistently fails (I think I saw it pass once though?) in #5515, but passes with the changeset.

This changeset adds a new instance variable to the mining thread which records what burn block initiated the mining thread (so this is the chain tip even in the case of a late block found). If the burn tip ever doesn't match that, it closes the miner.

@kantai kantai requested a review from a team as a code owner January 16, 2025 20:36
@kantai kantai requested a review from jcnelson January 16, 2025 20:36
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

I like this change, just had some comments on the test.

@jcnelson
Copy link
Member

LGTM, as long as CI passes modulo expected failures in 5515.

@kantai kantai requested a review from a team as a code owner January 16, 2025 22:26
@kantai kantai merged commit 7ad5743 into fix/burn-view Jan 17, 2025
179 of 180 checks passed
@kantai kantai deleted the feat/burn-view-fix-burn-checks branch January 17, 2025 14:11
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants