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

better support for ldk's channel close utxo's #7

Open
johncantrell97 opened this issue Feb 8, 2022 · 0 comments
Open

better support for ldk's channel close utxo's #7

johncantrell97 opened this issue Feb 8, 2022 · 0 comments

Comments

@johncantrell97
Copy link
Contributor

currently we just automatically sweep any ldk created utxo's into our bdk wallet when a channel is closed. this works fine but it costs the user an extra transaction.

in order to remove this extra transaction we can store the utxo information to our db and present these utxo's alongside all the user's other utxo's whenever they spend.

it definitely complicates spending though, not sure if it's really worth it. seems 'ok' for case where user is doing manual utxo selection. ton of work (or maybe impossible) to perform automatic utxo selection when spending from both ldk utxos and bdk utxos.

other option is to figure out a clean way to store these IN bdk utxo database. not sure that really makes sense though because bdk db is intended to be ephemeral / fully recoverable from a chain scan -- these don't fit that model at all.

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

No branches or pull requests

1 participant