(node_factory)
| 2955 | |
| 2956 | |
| 2957 | def test_htlc_accepted_hook_failonion(node_factory): |
| 2958 | plugin = os.path.join(os.path.dirname(__file__), 'plugins/htlc_accepted-failonion.py') |
| 2959 | l1, l2 = node_factory.line_graph(2, opts=[{}, {'plugin': plugin}]) |
| 2960 | |
| 2961 | # an invalid onion |
| 2962 | l2.rpc.setfailonion('0' * (292 * 2)) |
| 2963 | inv = l2.rpc.invoice(42, 'failonion000', '')['bolt11'] |
| 2964 | with pytest.raises(RpcError): |
| 2965 | l1.rpc.xpay(inv) |
| 2966 | |
| 2967 | |
| 2968 | @pytest.mark.slow_test # VALGRIND running generally too slow to trigger race we need. |
nothing calls this directly
no test coverage detected