Skip to content

lsps-plugin: connect the client to lightningd through State::rpc() - #9733

Open
nepet wants to merge 1 commit into
ElementsProject:masterfrom
nepet:lsps-client-rpc-helper
Open

nepet wants to merge 1 commit into
ElementsProject:masterfrom
nepet:lsps-client-rpc-helper

Conversation

@nepet

@nepet nepet commented Nov 12, 2026

Copy link
Copy Markdown
Member

Suggested in the review of #9716.

Every handler of the LSPS client rebuilt the RPC path from the plugin's configuration and connected to it: eight copies of the same three lines. This keeps the RPC path in the client's State, which already gets it at startup, and connects through State::rpc().

No behaviour change. Handlers that returned the connection error with ? now carry the "failed to connect to core-lightning" context the hooks already had.

#9716 adds two more handlers that connect the same way; whichever of the two PRs merges second moves them over.

Checklist

Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked:

  • The changelog has been updated in the relevant commit(s) according to the guidelines.
  • Tests have been added or modified to reflect the changes.
  • Documentation has been reviewed and updated as needed.
  • Related issues have been listed and linked, including any that this PR closes.
  • Important All PRs must consider how to reverse any persistent changes for tools/lightning-downgrade

Every handler of the LSPS client rebuilt the RPC path from the plugin's
configuration and connected to it, eight copies of the same three
lines. Keep the RPC path in the client's State, which already gets it
at startup, and connect through State::rpc().

Changelog-None
@nepet
nepet requested a review from Andezion November 12, 2026 15:18

This branch has not been deployed

No deployments
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.

1 participant