Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@reject-i
Copy link
Contributor

@reject-i reject-i commented Dec 24, 2025

ReapMaxTxs was returning max+1 transactions instead of max due to wrong loop condition. The check len(txs) <= max allowed one extra iteration after reaching the limit. Changed to len(txs) < max to stop at exactly max transactions.


Note

Ensures the mempool returns the correct number of transactions when reaping by count.

  • Update ReapMaxTxs loop condition in mempool/clist_mempool.go from len(txs) <= max to len(txs) < max to stop at exactly max txs

Written by Cursor Bugbot for commit 2a79c77. This will update automatically on new commits. Configure here.

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.