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

Add support for funding_fee_credit #2875

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Jul 9, 2024

We add an optional feature that lets on-the-fly funding clients accept payments that are too small to pay the fees for an on-the-fly funding. When that happens, the payment amount is added as "fee credit" without performing an on-chain operation. Once enough fee credit has been obtained, we can initiate an on-chain operation to create a channel or a splice by paying part of the fees from the fee credit.

This feature makes more efficient use of on-chain transactions by trusting that the liquidity seller will honor the fee credit in the future. The fee credit takes precedence over other ways of paying the fees (from the channel balance or future HTLCs), which guarantees that the fee credit eventually converges to 0.

This is specified in lightning/blips#41

@t-bast t-bast force-pushed the on-the-fly-funding-fee-credit branch 2 times, most recently from 1c0a6d4 to eb38767 Compare July 10, 2024 09:39
@t-bast t-bast force-pushed the on-the-fly-funding-fee-credit branch 2 times, most recently from 0e2d7da to d4f8eb7 Compare July 22, 2024 09:23
@t-bast t-bast force-pushed the on-the-fly-funding-fee-credit branch from d4f8eb7 to 41a935b Compare August 1, 2024 07:59
@t-bast t-bast force-pushed the on-the-fly-funding-fee-credit branch 2 times, most recently from e616a84 to b1e18a8 Compare August 28, 2024 09:03
@t-bast t-bast force-pushed the on-the-fly-funding-fee-credit branch 5 times, most recently from 49f2d8b to a34f600 Compare September 9, 2024 10:10
@t-bast t-bast force-pushed the on-the-fly-funding-fee-credit branch 2 times, most recently from e808bb2 to 16c24f9 Compare September 11, 2024 15:49
@t-bast t-bast force-pushed the on-the-fly-funding-fee-credit branch 4 times, most recently from 20e263b to a69dc8f Compare September 17, 2024 08:53
@t-bast t-bast force-pushed the on-the-fly-funding-fee-credit branch from a69dc8f to 928c373 Compare September 24, 2024 01:48
We add an optional feature that lets on-the-fly funding clients accept
payments that are too small to pay the fees for an on-the-fly funding.
When that happens, the payment amount is added as "fee credit" without
performing an on-chain operation. Once enough fee credit has been
obtained, we can initiate an on-chain operation to create a channel or
a splice by paying part of the fees from the fee credit.

This feature makes more efficient use of on-chain transactions by
trusting that the seller will honor our fee credit in the future. The
fee credit takes precedence over other ways of paying the fees (from
the channel balance or future HTLCs), which guarantees that the fee
credit eventually converges to 0.
@t-bast t-bast force-pushed the on-the-fly-funding-fee-credit branch from 928c373 to 22b33fc Compare September 25, 2024 11:02
@t-bast t-bast merged commit f11f922 into master Sep 26, 2024
1 check passed
@t-bast t-bast deleted the on-the-fly-funding-fee-credit branch September 26, 2024 12:21
@pm47
Copy link
Member

pm47 commented Sep 26, 2024

🎉

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.

2 participants