Skip to content
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

Multiple nodes #46

Merged
merged 3 commits into from
Jan 6, 2023
Merged

Multiple nodes #46

merged 3 commits into from
Jan 6, 2023

Conversation

JssDWt
Copy link
Collaborator

@JssDWt JssDWt commented Jan 3, 2023

Allow lspd to 'host' multiple nodes.

  • Every lightning node is its own 'lsp', so every node has a unique lsp key and a (important) corresponding token. In theory the lsp key could be the same on multiple nodes, but the token definitely has to differ (there's a check for that in the code as well, you can't launch lspd if you have multiple nodes configured with the same token.
  • When calls are made over the grpc api (register payment / channel information), the 'right' node is selected based on the token. So LND Breez clients should end up using the LND node lsp's token in order to register the payment on the 'right' node.
  • The .env config has changed to allow multiple nodes (you could add multiple LND/CLN nodes as well if you want)

@JssDWt JssDWt changed the base branch from cln-plugin-wrapper to prepare-for-cln January 6, 2023 13:34
@JssDWt JssDWt merged commit 5c7f22b into prepare-for-cln Jan 6, 2023
@JssDWt JssDWt mentioned this pull request Jan 6, 2023
5 tasks
@JssDWt JssDWt deleted the multiple-nodes branch January 9, 2023 11:45
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.

2 participants