Skip to content

staticaddr: channel funding with deposits #937

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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 4 times, most recently from fbe14d2 to 59975f0 Compare May 28, 2025 09:57
@hieblmi
Copy link
Collaborator Author

hieblmi commented May 28, 2025

Rebased

@hieblmi hieblmi force-pushed the static-open-channel branch from 59975f0 to 596b1df Compare June 30, 2025 14:57
@hieblmi
Copy link
Collaborator Author

hieblmi commented Jun 30, 2025

Rebased

@hieblmi hieblmi force-pushed the static-open-channel branch from 596b1df to 4d0e787 Compare July 2, 2025 17:01
@hieblmi
Copy link
Collaborator Author

hieblmi commented Jul 2, 2025

Rebased master

@hieblmi hieblmi force-pushed the static-open-channel branch from 4d0e787 to 818b915 Compare July 17, 2025 13:37
@hieblmi
Copy link
Collaborator Author

hieblmi commented Jul 17, 2025

Rebased master.

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

Successfully merging this pull request may close these issues.

1 participant