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

Function test_offer_selfpay

tests/test_renepay.py:856–861  ·  view source on GitHub ↗

We can fetch an pay our own offer

(node_factory)

Source from the content-addressed store, hash-verified

854
855
856def test_offer_selfpay(node_factory):
857 """We can fetch an pay our own offer"""
858 l1 = node_factory.get_node(options={'allow-deprecated-apis': True})
859 offer = l1.rpc.offer(amount="2msat", description="test_offer_path_self")["bolt12"]
860 inv = l1.rpc.fetchinvoice(offer)["invoice"]
861 l1.rpc.call("renepay", {"invstring": inv})
862
863
864def test_unannounced(node_factory):

Callers

nothing calls this directly

Calls 4

fetchinvoiceMethod · 0.80
get_nodeMethod · 0.45
offerMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected