Skip to content

miner: reset recommit timer on new block#3081

Merged
zzzckck merged 1 commit intobnb-chain:developfrom
zzzckck:reset_recommit
May 12, 2025
Merged

miner: reset recommit timer on new block#3081
zzzckck merged 1 commit intobnb-chain:developfrom
zzzckck:reset_recommit

Conversation

@zzzckck
Copy link
Copy Markdown
Collaborator

@zzzckck zzzckck commented May 12, 2025

Description

For historical reasons, the reset timer was added to fix a corner case issue, that the chain could be stuck.
The recommit code was kept, mainly because it has no obvious side-effect and the corner could is still there?(Personally, I prefer to keep right now, but also ok to remove it in the future.)

But it should be reseted on new block, this PT just do it.

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

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

@zzzckck zzzckck requested a review from Copilot May 12, 2025 06:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@zzzckck zzzckck merged commit 33cc103 into bnb-chain:develop May 12, 2025
7 checks passed
@zzzckck zzzckck deleted the reset_recommit branch May 12, 2025 06:47
galaio pushed a commit to galaio/bsc that referenced this pull request May 29, 2025
galaio pushed a commit to galaio/bsc that referenced this pull request May 29, 2025
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.

5 participants