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

Make missing txs check atomic #269

Merged
merged 2 commits into from
Mar 14, 2025
Merged

Conversation

codchen
Copy link
Collaborator

@codchen codchen commented Mar 10, 2025

Describe your changes and provide context

Previously it's possible for txs in mempool to be evicted during the window between missing txs check and txs retrieval. This PR makes missing txs check and txs retrieval happening under the same mutex section.

Testing performed to validate your change

no functional change. existing unit test

@codchen codchen requested a review from philipsu522 March 10, 2025 04:23
@codchen codchen force-pushed the tony/make-missing-txs-check-atomic branch from 334c701 to 8bfbf88 Compare March 14, 2025 06:32
@codchen codchen merged commit 9e9ab8a into main Mar 14, 2025
21 of 22 checks 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.

2 participants