Skip to content

fix(ntx): mempool subscription has a race condition#1568

Merged
Mirko-von-Leipzig merged 1 commit intonextfrom
mirko/hack-subscription
Jan 22, 2026
Merged

fix(ntx): mempool subscription has a race condition#1568
Mirko-von-Leipzig merged 1 commit intonextfrom
mirko/hack-subscription

Conversation

@Mirko-von-Leipzig
Copy link
Collaborator

This is a quick but hacky solution for #1566.

aka this is solution (1), but more ideal would be (2). (2) involves more of larger refactor so I'm punting on that for now.

Closes #1566.

@Mirko-von-Leipzig Mirko-von-Leipzig added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Jan 22, 2026
@Mirko-von-Leipzig Mirko-von-Leipzig force-pushed the mirko/hack-subscription branch 2 times, most recently from 5450e4a to b870456 Compare January 22, 2026 09:57
@bobbinth bobbinth requested a review from igamigo January 22, 2026 10:11
Copy link
Collaborator

@igamigo igamigo left a comment

Choose a reason for hiding this comment

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

LGTM! I agree that option 2 is better in the longer term, and also probably simplifies things a bit more.

@SantiagoPittella
Copy link
Collaborator

Do we want to include the option 2 in the 0.13 release? I can start to work on it and maybe be ready for a patch release or something

@Mirko-von-Leipzig
Copy link
Collaborator Author

Mirko-von-Leipzig commented Jan 22, 2026

Do we want to include the option 2 in the 0.13 release? I can start to work on it and maybe be ready for a patch release or something

Sure that would be welcome. I did start with (2) but then realized ideally we should distinguish between initializing (subscribe and sync with the store) and running (main event loop). And that became a larger delta.

I'll create an issue and assign you.

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit fe2d173 into next Jan 22, 2026
7 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the mirko/hack-subscription branch January 22, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subscribing to mempool events is flakey

3 participants