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

miner: fix commitWork not interrupted properly #2919

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

buddh0
Copy link
Collaborator

@buddh0 buddh0 commented Feb 26, 2025

Description

miner: fix commitWork not interrupted properly

Rationale

a validator is mining block N, but not in turn.

an in turn block with Number N arrived, so a chainHeadCh event trigged.

but this validator is not allowed to mine block N+1,

in this senario, the commitwork for Number N will not be interrupted properly!

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@buddh0 buddh0 marked this pull request as draft February 26, 2025 02:32
@buddh0 buddh0 force-pushed the fix_commitwork_not_interrupt branch from 87c425d to 876de07 Compare February 26, 2025 02:35
@buddh0 buddh0 marked this pull request as ready for review February 26, 2025 02:43
@buddh0
Copy link
Collaborator Author

buddh0 commented Feb 26, 2025

this bug exsited at least for 3 years!

@buddh0 buddh0 force-pushed the fix_commitwork_not_interrupt branch from 876de07 to 1353466 Compare February 26, 2025 03:03
@buddh0 buddh0 force-pushed the fix_commitwork_not_interrupt branch from 1353466 to 7d58162 Compare February 26, 2025 03:04
@buddh0 buddh0 marked this pull request as draft February 26, 2025 03:04
@buddh0 buddh0 marked this pull request as ready for review February 26, 2025 03:58
@zzzckck zzzckck merged commit 6a07fcc into bnb-chain:develop Feb 27, 2025
7 checks passed
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.

3 participants