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

Function test_lsps2_enabled

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

Source from the content-addressed store, hash-verified

40
41
42def test_lsps2_enabled(node_factory):
43 l1, l2 = node_factory.get_nodes(
44 2,
45 opts=[
46 {"experimental-lsps-client": None},
47 {
48 "experimental-lsps2-service": None,
49 "experimental-lsps2-promise-secret": "0" * 64,
50 },
51 ],
52 )
53
54 node_factory.join_nodes([l1, l2], fundchannel=False)
55
56 res = l1.rpc.lsps_listprotocols(lsp_id=l2.info["id"])
57 assert res["protocols"] == [2]
58
59
60def test_lsps2_getinfo(node_factory):

Callers

nothing calls this directly

Calls 2

get_nodesMethod · 0.80
join_nodesMethod · 0.80

Tested by

no test coverage detected