Skip to content

staticaddr: channel funding with deposits #937

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

hieblmi
Copy link
Collaborator

@hieblmi hieblmi commented May 8, 2025

This PR introduces a openchannel subcommand to static addresses.

It provides the same experience as lncli openchannel.
Exmples:

Open a channel with all available deposits:

loop static openchannel --fundmax --sat_per_vbyte XXX --private ...

Open a channel with specified local funding amount, coin-selected from available deposits under fee and dust considerations.

loop static openchannel --local_amt XXX --sat_per_vbyte YYY --private ...

Open a channel from two deposits AAA and BBB while taking their combined value(fundmax) as funding amount and considering fees and dust limit.

loop static openchannel --utxo AAA --utxo BBB --fundmax --sat_per_vbyte YYY --private ...

Open a channel from two deposits AAA and BBB while taking a specified amount(local_amt) as funding amount and considering fees and dust limit.

loop static openchannel --utxo AAA --utxo BBB --local_amt --sat_per_vbyte YYY --private ...

TODOs:

  • Integration tests

@hieblmi hieblmi self-assigned this May 8, 2025
@hieblmi hieblmi marked this pull request as draft May 8, 2025 20:31
@hieblmi hieblmi force-pushed the static-open-channel branch 2 times, most recently from 60286d0 to 97049c1 Compare May 9, 2025 09:20
@hieblmi hieblmi force-pushed the static-open-channel branch 6 times, most recently from 6c330e5 to 4184f2d Compare May 21, 2025 12:19
@hieblmi hieblmi changed the title [WIP] staticaddr: channel funding with deposits staticaddr: channel funding with deposits May 21, 2025
@hieblmi hieblmi marked this pull request as ready for review May 21, 2025 12:22
@hieblmi hieblmi force-pushed the static-open-channel branch 2 times, most recently from b42272e to 2308f8f Compare May 21, 2025 13:53
@hieblmi hieblmi force-pushed the static-open-channel branch from 2308f8f to fbe14d2 Compare May 22, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant