taproot-assets icon indicating copy to clipboard operation
taproot-assets copied to clipboard

[feature]: `FundChannel`: allow setting `local_funding_amount`

Open ZZiigguurraatt opened this issue 1 year ago • 1 comments

Allow setting local_funding_amount with FundChannel. Currently we have no way to change the amount of sats that are in a taproot assets channel.

We can change push_sat, but if you try to push too much, you can get an error amount pushed to remote peer for initial state must be below the local funding amount.

We should be able to use a taproot assets channel for both taproot assets and sats. It increases the usefulness of the channel and reduces the need for additional on chain transactions.

Also, right now, when testing with lots of payments, we can quickly deplete the sats in the channel because of https://github.com/lightninglabs/taproot-assets/issues/888 . If we are not able to change the amount of sats in a channel and push as much as we want to the other side when opening, we have to do extra bookeeping to make sure we have enough sats in our channel to keep making payments.

ZZiigguurraatt avatar Dec 15 '24 06:12 ZZiigguurraatt

Might want to also allow setting these channels as non-private as they can then be used for routing payments as well.

ZZiigguurraatt avatar Mar 18 '25 20:03 ZZiigguurraatt

Might want to also allow setting these channels as non-private as they can then be used for routing payments as well.

As these are Taproot channels, they can't be made public until the revamp to the LN gossip layer to support Taproot channels (amongst many other things) have been finalized.

Roasbeef avatar Apr 21 '25 23:04 Roasbeef

revamp to the LN gossip layer

You mean just in LND or at the BOLT level too?

ZZiigguurraatt avatar Apr 22 '25 05:04 ZZiigguurraatt

BOLT level: https://github.com/lightning/bolts/pull/1059

guggero avatar Apr 22 '25 07:04 guggero

hi,thanks for your work. and when could you launch v0.5.1 to surport LN node?

barret-666 avatar May 01 '25 15:05 barret-666

When will v0.5.1 be launched? When will USDT be officially launched on the Lightning Network?

Might want to also allow setting these channels as non-private as they can then be used for routing payments as well.

As these are Taproot channels, they can't be made public until the revamp to the LN gossip layer to support Taproot channels (amongst many other things) have been finalized.

Hunterstech avatar May 09 '25 03:05 Hunterstech

v0.5.1 was launched several months ago: https://github.com/lightninglabs/taproot-assets/releases/tag/v0.5.1 And v0.6.0 is in RC1: https://github.com/lightninglabs/taproot-assets/releases/tag/v0.6.0-rc1

guggero avatar May 09 '25 09:05 guggero