Commit 043b698
committed
blip-0041: channel funding fee credit
Onboarding users to the lightning network is hard, because opening a
channel requires paying on-chain fees and allocating capital, hoping
that it will be used to earn routing fees. It is not economical nor
sustainable to open channels for users that receive a tiny amount and
may not use the network frequently enough.
Wallet providers usually work around this issue by requiring users to
receive a large enough first payment to pay on-chain fees for their
channel.
However, a collection of unrelated tiny payments received over a period
of time may be enough to justify creating a channel. We thus introduce
a funding fee credit, that lets users prepay for future channel(s) by
proactively revealing htlc preimages for small payments. When that fee
credit reaches a sufficient amount, it is used by the remote node to
cover the on-chain costs of opening a channel or splicing additional
liquidity.1 parent 43d18b5 commit 043b698
3 files changed
+601
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
0 commit comments