Skip to content
This repository has been archived by the owner on Feb 18, 2025. It is now read-only.

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
Collaborator

@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
Collaborator 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants