core-lightning/lightningd/test
darosior a0df49718a lightningd/jsonrpc: Add a 'rpc_command' hook
The 'rpc_command' hook allows a plugin to take over any RPC command.
It sends the complete JSONRPC request to the plugin, which can then respond
with :
- {'continue'}: executes the command normally
- {'replace': {a_jsonrpc_request}}: replaces the request made
- {'return': {'result': {}}}: send a custom response
- {'return': {'error': {}}}: send a custom error

This way, a plugin can modify (/reimplement) or restrict the usage of
any of `lightningd`'s commands.

Changelog-Added: Plugin: A new plugin hook, `rpc_command` allows a plugin to take over `lightningd` for any RPC command.
2019-11-11 22:30:01 +01:00
..
Makefile makefiles: move all unit tests under make check-units 2019-06-30 16:41:30 +09:30
run-find_my_abspath.c queries: make sure scids are in order. 2019-10-10 21:48:52 -05:00
run-invoice-select-inchan.c gossipd: push our own gossip messages harder. 2019-10-14 15:00:37 -05:00
run-jsonrpc.c lightningd/jsonrpc: Add a 'rpc_command' hook 2019-11-11 22:30:01 +01:00