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

Function test_xpay_maxdelay

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

Source from the content-addressed store, hash-verified

561
562
563def test_xpay_maxdelay(node_factory):
564 l1, l2 = node_factory.line_graph(2, wait_for_announce=True)
565
566 inv = l2.rpc.invoice('10000msat', 'test_xpay_maxdelay', 'test_xpay_maxdelay')["bolt11"]
567
568 with pytest.raises(RpcError, match=r"Could not find route without excessive delays"):
569 l1.rpc.xpay(invstring=inv, maxdelay=1)
570
571
572def test_xpay_unannounced(node_factory):

Callers

nothing calls this directly

Calls 3

line_graphMethod · 0.80
invoiceMethod · 0.45
xpayMethod · 0.45

Tested by

no test coverage detected