8000 Fix unconfirmed badge on broken RBF txs by mononaut · Pull Request #5723 · mempool/mempool · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix unconfirmed badge on broken RBF txs #5723

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

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

mononaut
Copy link
Collaborator
@mononaut mononaut commented Jan 13, 2025

This PR fixes an edge case where replaced/evicted transactions can be labeled "unconfirmed" instead of "replaced" or "removed" if they get evicted from the mempool indirectly, making it unclear whether the transaction is still in the mempool or not.

Testing

To reproduce (best on regtest):

  • submit a parent transaction
  • submit a child transaction
  • RBF the child
  • RBF the parent
  • visit either of the child txids
  • observe that the transaction is labeled "unconfirmed", despite being evicted from the mempool (due to the replaced parent)
Screenshot 2025-01-14 at 6 30 43 AM

With this PR, the transaction will be correctly labeled "removed" instead.

Screenshot 2025-01-14 at 6 31 47 AM

@mononaut mononaut requested a review from softsimon January 13, 2025 07:39
@cla-bot cla-bot bot added the cla-signed label Jan 13, 2025
@mononaut mononaut force-pushed the mononaut/fix-cached-tx-badge branch from ec70e84 to 6a4aeaf Compare January 14, 2025 06:32
Copy link
Member
@softsimon softsimon left a comment

Choose a reason for hiding this comment

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

partially tested ACK @ [6a4aeaf]

@softsimon softsimon merged commit e7af43e into master Jan 17, 2025
13 checks passed
@softsimon softsimon deleted the mononaut/fix-cached-tx-badge branch January 17, 2025 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0