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

Function test_single_payment

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

Source from the content-addressed store, hash-verified

78
79
80def test_single_payment(node_factory, benchmark):
81 l1, l2 = get_bench_line_graph(node_factory, 2)
82
83 def do_pay(l1, l2):
84 invoice = l2.rpc.invoice(1000, 'invoice-{}'.format(random.random()), 'desc')['bolt11']
85 l1.rpc.xpay(invoice)
86
87 benchmark(do_pay, l1, l2)
88
89
90def test_forward_payment(node_factory, benchmark):

Callers

nothing calls this directly

Calls 1

get_bench_line_graphFunction · 0.85

Tested by

no test coverage detected