-
Notifications
You must be signed in to change notification settings - Fork 273
Extensible Liquidity Ads #2848
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
Merged
Merged
Extensible Liquidity Ads #2848
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f1c6334 to
cb2183e
Compare
cb2183e to
1f9048e
Compare
6fc8334 to
e23a6f5
Compare
e83eaea to
ff2f88b
Compare
ff2f88b to
3474de7
Compare
3474de7 to
c3f5e61
Compare
c3f5e61 to
347adf4
Compare
This was referenced Jul 19, 2024
Closed
347adf4 to
738604c
Compare
738604c to
4e1db8d
Compare
b52d01f to
a31bca3
Compare
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2848 +/- ##
==========================================
+ Coverage 85.98% 86.06% +0.08%
==========================================
Files 219 220 +1
Lines 18538 19015 +477
Branches 786 818 +32
==========================================
+ Hits 15939 16365 +426
- Misses 2599 2650 +51
|
629ce61 to
5ab74ba
Compare
pm47
requested changes
Sep 6, 2024
eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/ChannelTlv.scala
Outdated
Show resolved
Hide resolved
pm47
reviewed
Sep 6, 2024
eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/LiquidityAds.scala
Show resolved
Hide resolved
c77ff37 to
f63f175
Compare
The initiator of `open_channel2`, `tx_init_rbf` and `splice_init` can request funding from the remote node. The non-initiator node will: - let the open-channel-interceptor plugin decide whether to provide liquidity for new channels or not, and how much - always honor liquidity requests on existing channels (RBF and splice) when funding rates have been configured Liquidity ads are included in the `node_announcement` message, which lets buyers compare sellers and connect to sellers that provide rates they are comfortable with. They are also included in the `init` message which allows providing different rates to specific peers. This implements lightning/bolts#1153. We currently use the temporary tlv tag 1339 while we're waiting for feedback on the spec proposal.
Creating a new channel has an additional cost compared to adding liquidity to an existing channel: the channel will be closed in the future, which will require paying on-chain fees. Node operators can include a `channel-creation-fee-satoshis` in their liquidity ads to cover some of that future cost.
Whenever liquidity is purchased, we store it in the `AuditDb`. This lets node operators gather useful statistics on their peers, and which ones are actively using the liquidity that is purchased. We store minimal information about the liquidity ads itself to be more easily compatible with potential changes in the spec.
f63f175 to
c6a1199
Compare
pm47
approved these changes
Sep 24, 2024
t-bast
added a commit
that referenced
this pull request
Dec 4, 2024
This release introduces a few API changes: - `channelstats` now takes optional parameters `--count` and `--skip` to control pagination. By default, it will return the first 10 entries (#2890) - `createinvoice` now takes an optional `--privateChannelIds` parameter that can be used to add routing hints through private channels (#2909) - `nodes` allows filtering nodes that offer liquidity ads (#2848)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The initiator of
open_channel2,tx_init_rbfandsplice_initcan request funding from the remote node. The non-initiator node will:Liquidity ads are included in the
node_announcementmessage, which lets buyers compare sellers and connect to sellers that provide rates they are comfortable with. They are also included in theinitmessage which allows providing different rates to specific peers.This implements lightning/bolts#1153. We currently use the temporary tlv tag 1339 while we're waiting for
feedback on the spec proposal.