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

Close channel with one transaction #217

Open
JosephGoulden opened this issue Mar 22, 2023 · 0 comments
Open

Close channel with one transaction #217

JosephGoulden opened this issue Mar 22, 2023 · 0 comments

Comments

@JosephGoulden
Copy link
Contributor

JosephGoulden commented Mar 22, 2023

At the moment closing a channel produces a spendable output which is then sent to the BDK wallet. This results in two transactions when one should be sufficient. So either we need to supply the channel close output to BDK or better yet set the output destination when we open the channel (for increased security).

Return closing transaction ID in API response.

Use KeysInterface::get_shutdown_scriptpubkey to specify closing address when channel is opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants