Skip to content

Conversation

@nepet
Copy link
Member

@nepet nepet commented Apr 10, 2025

This PR implments the basic transport mechanism (lsps0) for LSP clients and services as described in https://github.com/lightning/blips/blob/master/blip-0050.md

lsps0 describes how LSPs communicate with their clients, wich basically is JSON-RPC v2.0 via custom lightning messages.

@nepet nepet requested a review from cdecker April 10, 2025 16:18
@rustyrussell
Copy link
Contributor

I don't think the service does anything right now, so it's probably OK that it's enabled by default. But obviously we'll want some options and documentation once it does...

@ShahanaFarooqui ShahanaFarooqui added this to the v25.05 milestone Apr 15, 2025
@cdecker
Copy link
Member

cdecker commented Apr 24, 2025

Very nice PR, looks like there is either a missing include of a Makefile or the Makefile was not committed, otherwise good to go 👍

ACK 80cb8c4

@nepet nepet force-pushed the 2511-add-lsps0 branch 2 times, most recently from 5794c12 to 9317921 Compare April 28, 2025 11:13
@nepet
Copy link
Member Author

nepet commented Apr 28, 2025

@rustyrussell Added a bool option lsps-service that disables the LSPS service plugin by default an only starts it when it is explicitly set to true.

In a next iteration we could even go as far as to only build the lsps-service plugin when we enabled it during configuration as I guess that only a minority of nodes want to be LSPs anyways. This would safe us some time and space when compiling cln.

@nepet nepet force-pushed the 2511-add-lsps0 branch 2 times, most recently from 44e0488 to 3a6eed9 Compare April 30, 2025 13:43
nepet added 5 commits April 30, 2025 15:44
Adds an async safe JSON-RPC V2 client for a generic transport layer. The
transport layer we will use later on are BOLT8 lightning messages.

Signed-off-by: Peter Neuroth <[email protected]>
For lsps0 we send JSON-RPC messages via custom messages over the
lightning network. This commit adds a basic implementation based
on custom messages.
We want a working client to run some integration tests.

Changelog-Added: lsps-plugin: lsps0 client support
Implements the LSPS0 service plugin for core lightning

Changelog-Added: lsps-plugin: lsps0 service support

Signed-off-by: Peter Neuroth <[email protected]>
nepet added 2 commits May 1, 2025 00:34
Signed-off-by: Peter Neuroth <[email protected]>
Adds some additional documentation to the json-rpc v2.0 messages
and error types.

Signed-off-by: Peter Neuroth <[email protected]>
@ShahanaFarooqui ShahanaFarooqui merged commit ae226cb into ElementsProject:master May 2, 2025
37 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants