Skip to content

Commit 719fb2c

Browse files
nepetrustyrussell
authored andcommitted
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 <pet.v.ne@gmail.com>
1 parent 8732410 commit 719fb2c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

plugins/lsps-plugin/src/client.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ async fn main() -> Result<(), anyhow::Error> {
7878
on_lsps_lsps2_approve,
7979
)
8080
.rpcmethod(
81-
"lsps-jitchannel",
81+
"lsps-lsps2-invoice",
8282
"Requests a new jit channel from LSP and returns the matching invoice",
83-
on_lsps_jitchannel,
83+
on_lsps_lsps2_invoice,
8484
)
8585
.hook("invoice_payment", on_invoice_payment)
8686
.hook("htlc_accepted", on_htlc_accepted)
@@ -285,7 +285,7 @@ async fn on_lsps_lsps2_approve(
285285
/// RPC Method handler for `lsps-jitchannel`.
286286
/// Calls lsps2.get_info, selects parameters, calculates fee, calls lsps2.buy,
287287
/// creates invoice.
288-
async fn on_lsps_jitchannel(
288+
async fn on_lsps_lsps2_invoice(
289289
p: cln_plugin::Plugin<State>,
290290
v: serde_json::Value,
291291
) -> Result<serde_json::Value, anyhow::Error> {

tests/test_cln_lsps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def test_lsps2_buyjitchannel_no_mpp_var_invoice(node_factory, bitcoind):
149149
"short_channel_id"
150150
]
151151

152-
inv = l1.rpc.lsps_jitchannel(
152+
inv = l1.rpc.lsps_lsps2_invoice(
153153
lsp_id=l2.info["id"],
154154
amount_msat="any",
155155
description="lsp-jit-channel-0",
@@ -239,7 +239,7 @@ def test_lsps2_buyjitchannel_mpp_fixed_invoice(node_factory, bitcoind):
239239
]
240240

241241
amt = 10_000_000
242-
inv = l1.rpc.lsps_jitchannel(
242+
inv = l1.rpc.lsps_lsps2_invoice(
243243
lsp_id=l2.info["id"],
244244
amount_msat=f"{amt}msat",
245245
description="lsp-jit-channel-0",

0 commit comments

Comments
 (0)