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

Function test_offers

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

Source from the content-addressed store, hash-verified

845
846
847def test_offers(node_factory):
848 l1, l2, l3 = node_factory.line_graph(3, wait_for_announce=True,
849 opts={'dev-allow-localhost': None, 'allow-deprecated-apis': True})
850 offer = l3.rpc.offer("1000sat", "test_renepay_offers")['bolt12']
851 invoice = l1.rpc.fetchinvoice(offer)['invoice']
852 response = l1.rpc.call("renepay", {"invstring": invoice})
853 assert response["status"] == "complete"
854
855
856def test_offer_selfpay(node_factory):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected