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

feat(txpool): improve demotion unexecutable transactions #84

Merged

Conversation

andyzhang2023
Copy link
Contributor

Description

It improves the demotion of un-executable transactions in txpool, to increase the throughput of txpool.

Rationale

Demotion contributes a lot to the latency of the runReorg() procedure, with a portion of nearly 30% to 40%. And, it gets worse when the number of pending transactions grows, since every time the txpool demotes un-executable transactions, it iterator every transaction in the pool to decide whether to demote it or not.

Changes

Notable changes:

  • only demote transactions that are included in the blocks.

@owen-reorg owen-reorg changed the title improve demotion unexecutable transactions in txpool feat(txpool): improve demotion unexecutable transactions May 28, 2024
@owen-reorg owen-reorg merged commit d0fbab5 into bnb-chain:develop May 30, 2024
1 check 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.

3 participants