Skip to content

Conversation

@ZanCorDX
Copy link
Collaborator

📝 Summary

New parameter time_to_keep_mempool_txs_secs replaces old hardcoded constant BLOCKS_TO_KEEP_TXS.
New metric so measure the mem used by mempool txs (so we can tune time_to_keep_mempool_txs_secs).
Updated config docs with time_to_keep_mempool_txs_secs and some more.

💡 Motivation and Context

It was unethical to kill so young txs.

✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@ZanCorDX ZanCorDX requested a review from dvush as a code owner August 20, 2025 20:52
/// This will update every 2.4 hours, super reasonable.
pub const DEFAULT_BLOCKLIST_URL_MAX_AGE_HOURS: u64 = 24;
pub const DEFAULT_REQUIRE_NON_EMPTY_BLOCKLIST: bool = false;
pub const DEFAULT_TIME_TO_KEEP_MEMPOOL_TXS_SECS: u64 = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why default is 1 sec? We kept mempool txs for couple of blocks before

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je, I used the wrong unit! It should be 1 min. Thanks!

@ZanCorDX ZanCorDX requested a review from dvush August 21, 2025 13:40
@ZanCorDX ZanCorDX merged commit 7b4d74d into develop Aug 21, 2025
3 checks passed
@ZanCorDX ZanCorDX deleted the mempool-age-param branch August 21, 2025 16:34
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.

2 participants