Skip to content

miner: fix commitWork not interrupted properly#2919

Merged
zzzckck merged 1 commit intobnb-chain:developfrom
buddh0:fix_commitwork_not_interrupt
Feb 27, 2025
Merged

miner: fix commitWork not interrupted properly#2919
zzzckck merged 1 commit intobnb-chain:developfrom
buddh0:fix_commitwork_not_interrupt

Conversation

@buddh0
Copy link
Copy Markdown
Contributor

@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 marked this pull request as ready for review February 26, 2025 02:43
@buddh0
Copy link
Copy Markdown
Contributor Author

buddh0 commented Feb 26, 2025

this bug exsited at least for 3 years!

@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
@buddh0 buddh0 deleted the fix_commitwork_not_interrupt branch March 3, 2025 07:10
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