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

Function test_htlc_accepted_hook_failonion

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

Source from the content-addressed store, hash-verified

2955
2956
2957def 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.

Callers

nothing calls this directly

Calls 4

joinMethod · 0.80
line_graphMethod · 0.80
invoiceMethod · 0.45
xpayMethod · 0.45

Tested by

no test coverage detected