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

Transactions confirmed transitively question #1795

Open
thunderbiscuit opened this issue Jan 10, 2025 · 0 comments
Open

Transactions confirmed transitively question #1795

thunderbiscuit opened this issue Jan 10, 2025 · 0 comments
Labels
discussion There's still a discussion ongoing

Comments

@thunderbiscuit
Copy link
Member

thunderbiscuit commented Jan 10, 2025

I'm trying to wrap my mind around transitively confirmed transactions (https://github.com/bitcoindevkit/bdk/pull/1733/files).

When would you find yourself in possession of a transaction that doesn't have an anchor with its "true confirmation block", but only through a block that confirms a transaction that spent this tx? I understand why if we know about a transaction B that spends an output created in transaction A, then it must be that A was confirmed at some point, but when does that come into play?

I basically want to be able to answer a user-layer question that would be something like: "So if I see this transaction as "transitively confirmed"... what should I do? Can I ask my TxGraph to perform the required steps to update itself? What are my next steps? For one I can't display the block a tx was confirmed in to my users, but this seems like a surfacing of something deeper and I wonder if there are other internal issues I should address. Is my syncing wrong in some way that the TxGraph could not procure the correct block that the transaction was confirmed in and has to rely on a secondary transaction to ensure canonicalism?"

That's the sort of question going through my mind as I see a transaction with a ChainPosition enum that can potentially be confirmed transitively and want to make sure I react appropriately when/if I come across them.

Thank you @evanlinjin for getting the conversation going on this on Discord. I'm still not 100% clear on how to proceed if ever I come across one of those however, and that tells me I need to understand better the circumstances where this variant would come up.

@thunderbiscuit thunderbiscuit changed the title Transaction confirmed transitively Transactions confirmed transitively question Jan 10, 2025
@notmandatory notmandatory added this to BDK Jan 12, 2025
@notmandatory notmandatory moved this to Discussion in BDK Jan 12, 2025
@notmandatory notmandatory added the discussion There's still a discussion ongoing label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion There's still a discussion ongoing
Projects
Status: Discussion
Development

No branches or pull requests

2 participants