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

Add support for opening anchor outputs channels #116

Merged
merged 4 commits into from
Aug 14, 2023

Conversation

wpaulino
Copy link
Contributor

Adds support for opening anchor outputs channels and handles their BumpTransaction events via the BumpTransactionEventHandler implementing WalletSource.

Fixes #45.
Fixes #115.

Since we plan to add support for opening anchor outputs channels, we'll
need to support manually accepting inbound channels first to do so.
`BitcoindClient` will be used as the view into the onchain wallet from
which we'll source UTXOs.
WitnessVersion::V0 => WPubkeyHash::from_slice(program)
.map(|wpkh| Utxo::new_v0_p2wpkh(outpoint, utxo.amount, &wpkh))
.ok(),
// TODO: Add `Utxo::new_v1_p2tr` upstream.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a PR or at least issue for this upstream yet? Can you link to that here (and maybe link back to here there?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I have a branch that's added it already and improves test coverage of the weight estimates for different Utxo types.

@TheBlueMatt TheBlueMatt merged commit 0be8a1b into lightningdevkit:main Aug 14, 2023
4 checks passed
@wpaulino wpaulino deleted the anchors branch June 15, 2024 20:59
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.

Anchor Channels Add option to manually accept inbound channels
2 participants