(node_factory)
| 862 | |
| 863 | |
| 864 | def test_unannounced(node_factory): |
| 865 | l1, l2 = node_factory.line_graph(2, announce_channels=False, opts={'allow-deprecated-apis': True}) |
| 866 | # BOLT-11 direct peer |
| 867 | b11 = l2.rpc.invoice( |
| 868 | "100sat", "test_renepay_unannounced", "test_renepay_unannounced" |
| 869 | )["bolt11"] |
| 870 | ret = l1.rpc.call("renepay", {"invstring": b11}) |
| 871 | assert ret["status"] == "complete" |
| 872 | # BOLT-12 direct peer |
| 873 | offer = l2.rpc.offer("any")["bolt12"] |
| 874 | b12 = l1.rpc.fetchinvoice(offer, "21sat")["invoice"] |
| 875 | ret = l1.rpc.call("renepay", {"invstring": b12}) |
| 876 | assert ret["status"] == "complete" |
| 877 | |
| 878 | |
| 879 | def test_cltv_value(node_factory, bitcoind): |
nothing calls this directly
no test coverage detected