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

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

Merged
merged 2 commits into from May 9, 2024

Conversation

galaio
Copy link
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
7 checks passed
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.

None yet

4 participants