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: avoid producing empty block when pending transactions is high #195

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented Dec 30, 2022

This commit adapts BSC PR: bnb-chain/bsc#112 to Ronin.

An empty block is pre-sealed by default. It's expected that a new block with
transactions is committed and abort the empty block producer if there are
pending transactions. However, with the low block time, in case there are a lot
of pending transactions, the commit transactions time exceeds the time an empty
block is produced. As a result, block with transactions is not produced but an
empty block and no real transactions is mined.

@minh-bq minh-bq requested review from DNK90 and linh-1 December 30, 2022 04:15
@minh-bq
Copy link
Contributor Author

minh-bq commented Dec 30, 2022

This branch is based on #193 to only support Buba hardfork, this PR is intended to be merged after PR 193

@minh-bq minh-bq force-pushed the fix/empty-block branch 2 times, most recently from da8a111 to cf26e62 Compare December 30, 2022 04:21
This commit adapts BSC PR: bnb-chain/bsc#112 to Ronin.

An empty block is pre-sealed by default. It's expected that a new block with
transactions is committed and abort the empty block producer if there are
pending transactions. However, with the low block time, in case there are a lot
of pending transactions, the commit transactions time exceeds the time an empty
block is produced. As a result, block with transactions is not produced but an
empty block and no real transactions is mined.
@minh-bq minh-bq merged commit c13acfb into axieinfinity:master Jan 16, 2023
@minh-bq minh-bq deleted the fix/empty-block branch January 16, 2023 04:28
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.

4 participants