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

Function test_xpay_selfpay

tests/test_xpay.py:218–226  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

216
217
218def test_xpay_selfpay(node_factory):
219 l1 = node_factory.get_node()
220
221 b11 = l1.rpc.invoice(1000, "test_xpay_selfpay1", "test_xpay_selfpay1")['bolt11']
222 offer = l1.rpc.offer('any')
223 b12 = l1.rpc.fetchinvoice(offer['bolt12'], '1000msat')['invoice']
224
225 l1.rpc.xpay(b11)
226 l1.rpc.xpay(b12)
227
228
229# These were obviously having a bad day at the time of the snapshot:

Callers

nothing calls this directly

Calls 5

fetchinvoiceMethod · 0.80
get_nodeMethod · 0.45
invoiceMethod · 0.45
offerMethod · 0.45
xpayMethod · 0.45

Tested by

no test coverage detected