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

fix(sequencer): increase mempool removal cache size #1969

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Fraser999
Copy link
Contributor

Summary

This changes the hard-coded value of the mempool removal cache size to be greater than the default CometBFT mempool size.

Background

The removal cache is the means by which CometBFT becomes aware that a failed tx should be removed from its own mempool (via a CheckTx call). If the removal cache reaches the limit of entries, new ones will replace the oldest ones before CometBFT is able to call CheckTx for them.

Note that the removal cache entries are fairly small - a couple of hashes and a small "removal reason" object each, so increasing this limit significantly should have no meaningful effect on the sequencer's memory usage or performance.

Changes

  • Increase REMOVAL_CACHE_SIZE from 4096 to 50,000.

Testing

No new tests added.

Changelogs

Changelogs updated.

Related Issues

Closes #1968.

@Fraser999 Fraser999 requested a review from noot as a code owner February 13, 2025 11:27
@github-actions github-actions bot added the sequencer pertaining to the astria-sequencer crate label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sequencer pertaining to the astria-sequencer crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase sequencer mempool removal cache size
1 participant