From 719fb2ce52aadb76f2f95abdcb20c6a12109c119 Mon Sep 17 00:00:00 2001 From: Peter Neuroth Date: Wed, 19 Nov 2025 12:06:44 +0100 Subject: [PATCH] plugin: change method name of lsps-jitchannel The original method name was lsps-lsps2-invoice but I somehow messed it up and renamed during a rebase. Changelog-Changed: lsps-jitchannel is now lsps-lsps2-invoice Signed-off-by: Peter Neuroth --- plugins/lsps-plugin/src/client.rs | 6 +++--- tests/test_cln_lsps.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/lsps-plugin/src/client.rs b/plugins/lsps-plugin/src/client.rs index 0ca25e334..a466560f7 100644 --- a/plugins/lsps-plugin/src/client.rs +++ b/plugins/lsps-plugin/src/client.rs @@ -78,9 +78,9 @@ async fn main() -> Result<(), anyhow::Error> { on_lsps_lsps2_approve, ) .rpcmethod( - "lsps-jitchannel", + "lsps-lsps2-invoice", "Requests a new jit channel from LSP and returns the matching invoice", - on_lsps_jitchannel, + on_lsps_lsps2_invoice, ) .hook("invoice_payment", on_invoice_payment) .hook("htlc_accepted", on_htlc_accepted) @@ -285,7 +285,7 @@ async fn on_lsps_lsps2_approve( /// RPC Method handler for `lsps-jitchannel`. /// Calls lsps2.get_info, selects parameters, calculates fee, calls lsps2.buy, /// creates invoice. -async fn on_lsps_jitchannel( +async fn on_lsps_lsps2_invoice( p: cln_plugin::Plugin, v: serde_json::Value, ) -> Result { diff --git a/tests/test_cln_lsps.py b/tests/test_cln_lsps.py index e2ce15b07..7eb2d4ffd 100644 --- a/tests/test_cln_lsps.py +++ b/tests/test_cln_lsps.py @@ -149,7 +149,7 @@ def test_lsps2_buyjitchannel_no_mpp_var_invoice(node_factory, bitcoind): "short_channel_id" ] - inv = l1.rpc.lsps_jitchannel( + inv = l1.rpc.lsps_lsps2_invoice( lsp_id=l2.info["id"], amount_msat="any", description="lsp-jit-channel-0", @@ -239,7 +239,7 @@ def test_lsps2_buyjitchannel_mpp_fixed_invoice(node_factory, bitcoind): ] amt = 10_000_000 - inv = l1.rpc.lsps_jitchannel( + inv = l1.rpc.lsps_lsps2_invoice( lsp_id=l2.info["id"], amount_msat=f"{amt}msat", description="lsp-jit-channel-0",