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

Function test_forward_payment

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

Source from the content-addressed store, hash-verified

88
89
90def test_forward_payment(node_factory, benchmark):
91 l1, l2, l3 = get_bench_line_graph(node_factory, 3, wait_for_announce=True)
92
93 def do_pay(src, dest):
94 invoice = dest.rpc.invoice(1000, 'invoice-{}'.format(random.random()), 'desc')['bolt11']
95 src.rpc.xpay(invoice)
96
97 benchmark(do_pay, l1, l3)
98
99
100def test_long_forward_payment(node_factory, benchmark):

Callers

nothing calls this directly

Calls 1

get_bench_line_graphFunction · 0.85

Tested by

no test coverage detected