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 opt async priced #246

Merged

Conversation

andyzhang2023
Copy link
Contributor

Description

An "async-reheap" priced list is introduced into txpool to get better performance. The re-heap of the whole transaction pool usually costs hundreds of ms, which blocks more transactions coming into the pool through the Add() function. So we develop a new type of priced list to resolve the bottleneck.
The "async-reheap" finds the "lowest-priced" transactions async, and stores it into a cache, then it does the "underpriced" validation quickly by the stored cache.

Example

add flag --txpool.asyncpriced to enable this feature.

@github-actions github-actions bot requested review from krish-nr and redhdx December 26, 2024 08:46
@bnoieh
Copy link
Contributor

bnoieh commented Jan 7, 2025

I see no log for the new feature, better add proper debug/info logs

@andyzhang2023
Copy link
Contributor Author

I see no log for the new feature, better add proper debug/info logs

Added.

@andyzhang2023 andyzhang2023 merged commit 3474c47 into bnb-chain:develop Jan 9, 2025
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