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

Function test_offer_selfpay

tests/test_pay.py:6094–6100  ·  view source on GitHub ↗

We can fetch an pay our own offer

(node_factory)

Source from the content-addressed store, hash-verified

6092
6093
6094def test_offer_selfpay(node_factory):
6095 """We can fetch an pay our own offer"""
6096 l1 = node_factory.get_node()
6097
6098 offer = l1.rpc.offer(amount='2msat', description='test_offer_path_self')['bolt12']
6099 inv = l1.rpc.fetchinvoice(offer)['invoice']
6100 l1.rpc.pay(inv)
6101
6102
6103def test_decryptencrypteddata(node_factory):

Callers

nothing calls this directly

Calls 4

fetchinvoiceMethod · 0.80
get_nodeMethod · 0.45
offerMethod · 0.45
payMethod · 0.45

Tested by

no test coverage detected