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>
This commit is contained in:
committed by
Rusty Russell
parent
87324103de
commit
719fb2ce52
@@ -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<State>,
|
||||
v: serde_json::Value,
|
||||
) -> Result<serde_json::Value, anyhow::Error> {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user