MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_lsps0_listprotocols

Function test_lsps0_listprotocols

tests/test_cln_lsps.py:23–39  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

21
22@unittest.skipUnless(RUST, "RUST is not enabled")
23def test_lsps0_listprotocols(node_factory):
24 l1, l2 = node_factory.get_nodes(
25 2,
26 opts=[
27 {"experimental-lsps-client": None},
28 {
29 "experimental-lsps2-service": None,
30 "experimental-lsps2-promise-secret": "0" * 64,
31 },
32 ],
33 )
34
35 # We don't need a channel to query for lsps services
36 node_factory.join_nodes([l1, l2], fundchannel=False)
37
38 res = l1.rpc.lsps_listprotocols(lsp_id=l2.info["id"])
39 assert res
40
41
42def test_lsps2_enabled(node_factory):

Callers

nothing calls this directly

Calls 2

get_nodesMethod · 0.80
join_nodesMethod · 0.80

Tested by

no test coverage detected