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

Function test_long_forward_payment

tests/benchmark.py:100–107  ·  view source on GitHub ↗
(node_factory, benchmark)

Source from the content-addressed store, hash-verified

98
99
100def test_long_forward_payment(node_factory, benchmark):
101 nodes = get_bench_line_graph(node_factory, 21, wait_for_announce=True)
102
103 def do_pay(src, dest):
104 invoice = dest.rpc.invoice(1000, 'invoice-{}'.format(random.random()), 'desc')['bolt11']
105 src.rpc.xpay(invoice)
106
107 benchmark(do_pay, nodes[0], nodes[-1])
108
109
110def test_invoice(node_factory, benchmark):

Callers

nothing calls this directly

Calls 1

get_bench_line_graphFunction · 0.85

Tested by

no test coverage detected