core-lightning/tests/plugins
Christian Decker 490550d508 plugin: Allow multiple plugins to register the htlc_accepted hook
Make the `htlc_accepted` hook the first chained hook in our repertoire. The
plugins are called one after the other in order until we have no more plugins
or the HTLC was handled by one of the plugins. If no plugins handles the HTLC
we continue to handle it internally like always.

Handling in this case means the plugin returns either `{"result": "resolve",
...}` or `{"result": "fail", ...}`.

Changelog-Changed: plugin: Multiple plugins can now register for the htlc_accepted hook.
2020-02-11 15:57:22 +10:30
..
accepter_close_to.py openchannel hook: add new close_to field 2019-11-22 00:41:15 +00:00
asynctest.py pylightning: Split @method and @async_method decorators 2019-02-22 02:59:36 +00:00
broken.py plugins: refactor the tests for dynamic plugins 2019-09-30 00:20:16 +00:00
custommsg.py pytest: Add a plugin for custommsgs and check that they get the msgs 2020-01-28 23:50:52 +01:00
dblog.py pytest plugins: use the standard 'no operation' syntax for hooks 2020-02-04 01:07:59 +00:00
fail_htlcs.py pytest: Let fail_htlcs.py plugin generates TEMPORARY_NODE_FAILURE error 2019-09-16 12:22:06 +08:00
feature-test.py plugin: Allow custom features only if the plugin is not dynamic 2020-02-11 13:53:31 +10:30
forward_payment_status.py pytest: make test_forward_event_notification more explicit. 2019-08-28 04:04:28 +00:00
hold_htlcs.py pytest: add test that htlc_accepted hook only gets called after init. 2019-09-01 16:55:32 +02:00
hold_invoice.py pytest plugins: use the standard 'no operation' syntax for hooks 2020-02-04 01:07:59 +00:00
hook-chain-even.py plugin: Allow multiple plugins to register the htlc_accepted hook 2020-02-11 15:57:22 +10:30
hook-chain-odd.py plugin: Allow multiple plugins to register the htlc_accepted hook 2020-02-11 15:57:22 +10:30
Makefile pytest: add a C testing plugin to test libplugin 2020-02-10 09:49:15 +10:30
millisatoshis.py pytest: test that we translate to and from Millisatoshi on plugin RPC. 2019-02-25 21:45:21 +00:00
misc_notifications.py Test and document 'channel_opened' notification 2019-07-27 12:18:25 +02:00
pretend_badlog.py pylightning: Warn users of plugins that may break due to extra args 2019-08-05 00:19:48 +00:00
print_htlc_onion.py tests: test that we only use tlv onion when advertized. 2019-11-14 10:15:33 +01:00
reject_odd_funding_amounts.py pylightning: Warn users of plugins that may break due to extra args 2019-08-05 00:19:48 +00:00
reject_some_invoices.py pytest plugins: use the standard 'no operation' syntax for hooks 2020-02-04 01:07:59 +00:00
reject.py pylightning: Warn users of plugins that may break due to extra args 2019-08-05 00:19:48 +00:00
rpc_command.py pytest plugins: use the standard 'no operation' syntax for hooks 2020-02-04 01:07:59 +00:00
sendpay_notifications.py pytest: Reproduce issue #3403, sendpay notifications with no waiter 2020-01-13 23:34:46 +01:00
shortcircuit.py pylightning: Warn users of plugins that may break due to extra args 2019-08-05 00:19:48 +00:00
slow_init.py pytest: make test_plugin_slowinit a test again 2019-10-11 10:05:08 -05:00
static.py lightningd/plugin_control: don't control non-dynamic plugins 2019-07-28 07:24:04 +00:00
test_libplugin.c pytest: test libplugin's send_outreq 2020-02-10 09:49:15 +10:30
utf8.py pytest: test passing utf8 into and out of plugin JSON. 2019-03-05 11:43:22 +01:00