-
Notifications
You must be signed in to change notification settings - Fork 116
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
Flush expired transactions from mempool #2622
Comments
Hey team! Please add your planning poker estimate with ZenHub @conradoplg @dconnolly @jvff @oxarbitrage @teor2345 @upbqdn |
Need #2749 |
I have two questions in order to do this.
Thanks. |
One idea that was suggested by @conradoplg in discord was to add this in the mempool service "I think we can do this in the mempool poll_ready since it will get called periodically. At least the current code is relying on that to periodically check if transactions have been downloaded and adding them to the mempool if they were." The implementation at #2774 uses the above. There was another suggestion from @jvff however i was not able to code up this one: "Idea: It could be a separate task spawned when the mempool is created, that:
where next_expiration_rescheduled is an mpsc channel receiver whose sender is owned by the mempool::Storage and messages are sent when new transactions are inserted"
After more research this question is not valid anymore, there is no timestamp involved in the mempool transaction expirations but just block heights. |
Motivation
Specifications
Designs
Related Work
The text was updated successfully, but these errors were encountered: