Skip to content

txpool: limit max gas when mining is enabled;#2435

Merged
zzzckck merged 2 commits intobnb-chain:developfrom
galaio:limit-mining-tx-gas
May 9, 2024
Merged

txpool: limit max gas when mining is enabled;#2435
zzzckck merged 2 commits intobnb-chain:developfrom
galaio:limit-mining-tx-gas

Conversation

@galaio
Copy link
Copy Markdown
Contributor

@galaio galaio commented Apr 30, 2024

Description

This PR tries to add a max gas limit in txpool when mining is enabled. It will drop the txs that the miner cannot package.

It will reduce pending txs in txpool, and reduce mem, CPU usage too.

Changes

Notable changes:

  • txpool: limit max gas when mining is enabled;
  • ...

@galaio galaio requested review from weiihann and zzzckck April 30, 2024 08:26
zzzckck
zzzckck previously approved these changes Apr 30, 2024
@zzzckck zzzckck merged commit 7bc5a33 into bnb-chain:develop May 9, 2024
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