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

Function test_unannounced

tests/test_renepay.py:864–876  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

862
863
864def test_unannounced(node_factory):
865 l1, l2 = node_factory.line_graph(2, announce_channels=False, opts={'allow-deprecated-apis': True})
866 # BOLT-11 direct peer
867 b11 = l2.rpc.invoice(
868 "100sat", "test_renepay_unannounced", "test_renepay_unannounced"
869 )["bolt11"]
870 ret = l1.rpc.call("renepay", {"invstring": b11})
871 assert ret["status"] == "complete"
872 # BOLT-12 direct peer
873 offer = l2.rpc.offer("any")["bolt12"]
874 b12 = l1.rpc.fetchinvoice(offer, "21sat")["invoice"]
875 ret = l1.rpc.call("renepay", {"invstring": b12})
876 assert ret["status"] == "complete"
877
878
879def test_cltv_value(node_factory, bitcoind):

Callers

nothing calls this directly

Calls 5

line_graphMethod · 0.80
fetchinvoiceMethod · 0.80
invoiceMethod · 0.45
callMethod · 0.45
offerMethod · 0.45

Tested by

no test coverage detected