Skip to content

Fix missing spendable output descriptor for timeout tx #532

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

Closed

Conversation

ariard
Copy link

@ariard ariard commented Mar 3, 2020

Should fix #338. Based on #462 which fix spendable output descriptor bookmarking by refactoring static spendable output descriptor to a unique location in OnchainTxHandler.

New commits add spendable output descriptor logger + new test for covering case (to test fix pick commit to current master 27426f8 and observe failure)

Antoine Riard added 8 commits March 2, 2020 19:27
Encapsulates tracking and bumping of in-flight transactions in
its own component. This component may be latter abstracted
to reuse tracking and RBF for new features (e.g dual-funding,
splicing)

Build all transactions generation in one place. Also as fees
and signatures are closely tied, what keys do you have determine
what bumping mode you can use.
As per BIP143, value of the output spent is part of the transaction
digest algorithm, providing a wrong value will generate a falsely
hash and fail signature verification. Clarity about amount spent
is that's why important.
Height timer as an important component of a more-secure, fee-sensitive
claiming of time-constrained LN outputs, therefore document assumptions.
Cover previously missing SpendableOuputDescriptor for
timeout tx on non-revoked remote commitment tx.

Fix lightningdevkit#338
@TheBlueMatt
Copy link
Collaborator

Needs rebase.

@TheBlueMatt TheBlueMatt added this to the 0.0.11 milestone Mar 18, 2020
@ariard
Copy link
Author

ariard commented Mar 19, 2020

Now part of #552 .

@ariard ariard closed this Mar 19, 2020
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.

Missing SpendableOutput push in channelmonitor in one case.
2 participants