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 stuck transaction notification due to race in mempool when advancing a block #3369

Merged
merged 2 commits into from
Jul 20, 2021

Conversation

jackrobison
Copy link
Member

@jackrobison jackrobison commented Jul 20, 2021

This fixes 2945, which reliably happens in the integration tests in the leveldb-resolve branch (because mempool/advance are faster) without this change.

The error happens when the wallet server/hub processes mempool, sends a notification for a tx being accepted to a client, and then quickly advances to the next block before the client has time to send their address history request, resulting in them getting back an address history with a > 0 block height.

@jackrobison jackrobison added type: bug Existing functionality is wrong or broken area: wallet labels Jul 20, 2021
@jackrobison jackrobison changed the title fix stuck notification due to mempool/notification race fix stuck transaction notification due to race in mempool when advancing a block Jul 20, 2021
@jackrobison jackrobison merged commit f257ff2 into master Jul 20, 2021
@jackrobison jackrobison deleted the fix-hanging-tx-notification branch July 20, 2021 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: wallet type: bug Existing functionality is wrong or broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

transaction notification on clients sometimes doesn't happen until 2 new blocks come in
2 participants