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

Function test_sql_limit_per_list

tests/test_plugin.py:4524–4531  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

4522
4523
4524def test_sql_limit_per_list(node_factory):
4525 l1, l2, l3 = node_factory.line_graph(
4526 3, wait_for_announce=True, opts=[{}, {"dev-sqllistlimit": 10}, {}]
4527 )
4528 for i in range(20):
4529 inv = l3.rpc.invoice(1000, f"inv-{i}", f"inv-{i}")["bolt11"]
4530 l1.rpc.xpay(inv)
4531 l2.rpc.sql("SELECT created_index, payment_hash FROM channelmoves")
4532
4533
4534def test_plugin_persist_option(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