-
Notifications
You must be signed in to change notification settings - Fork 31
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
Transport layer proposal #23
Transport layer proposal #23
Conversation
5dade87
to
45fff32
Compare
TODO: What happens if the client disconnects before the LSP can respond to a request? |
45fff32
to
bd39717
Compare
Added text on what happens if connection lost. |
bd39717
to
e550bcf
Compare
e550bcf
to
79c50e1
Compare
Added section on implementing LSPS0, also changed how disconnections / reconnections should be handled. |
79c50e1
to
bf1f613
Compare
@johncantrell97 taught me how feature bits can be added for LDK-based LSP software. Anyone up for writing how to implement LSPS0 for LND? |
Client or LSP can just ignore the message in this case IMO. |
[BOLT7]: https://github.com/lightning/bolts/blob/f7dcc32694b8cd4f3a1768b904f58cb177168f29/07-routing-gossip.md | ||
[BOLT1]: https://github.com/lightning/bolts/blob/f7dcc32694b8cd4f3a1768b904f58cb177168f29/01-messaging.md | ||
|
||
LSPs MUST set the `features` bit numbered 729 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pinged LL on the implementation timeline for setting custom feature bits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No response from LL; also current LSPS0 requires init
feature bits, but it seems only custom node_announcement
feature bits are planned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carlaKC responded, she is working on it including the init feature bits. So from a compatibility POV, this shouldn't be an issue. Thx Carla 🙏
bf1f613
to
34ae76e
Compare
@SeverinAlexB wrote:
What I wanted to think on was the |
f325cd3
to
d51c3a4
Compare
Recent changes: fixed typos reported by @tnull, added short section on implementation for LND. |
97c4e56
to
635e34f
Compare
Adding this for completion of the gzip discussion: gzip/zip can cause so called zip bombs. A small zipped file can bloat up to terabytes of data. This was the issue LN devs run into previously according to Christian Decker. This is of course a problem. In the unlikely case we need compression in the future, we can prevent such bombs by adding an uncompressed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a second review. All in all great work @ZmnSCPxj-jr. I got some open questions about error messages but otherwise this is an ACK.
9247a50
to
49544d1
Compare
Complete ACK from my side. |
49544d1
to
6ef80b0
Compare
Added "Status" field, as well as specification of this "Status" field, as per @SeverinAlexB suggestion during the meeting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good to me!
Excuse the delay, finally came around to have a closer look. I have only a few comments/questions that would be nice to clarify, but nothing major really.
I also did some proofreading and added a ton of wording suggestions/nits, feel free to regard anything with the "nit:" prefix as non-blocking suggestions, i.e., feel free to ignore if you don't agree.
6ef80b0
to
8096d4e
Compare
Modified as per @tnull feedback. |
1debaf9
to
7254e15
Compare
Changes: Added rationale for |
92a00b8
to
d575f93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM.
I think I am ACK on this, provided the larger group comes to alignment on using the JSON-RPC approach.
d575f93
to
cb4c51b
Compare
cb4c51b
to
126feee
Compare
Changes: Describe how other LSPS specifications should design their APIs so they are resilient against the client crashing and aborting the flow or process, explicitly state that feature bit 729 be set if LSP supports LSPS0 at minimum. |
4892bf3
to
4d96f59
Compare
Changes: remove |
4d96f59
to
36996e7
Compare
Change: remove |
36996e7
to
06da396
Compare
No description provided.