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
..
2019-11-11 22:30:01 +01:00
2017-10-20 18:31:32 +02:00
2019-11-05 16:47:52 +01:00
2019-09-09 04:26:03 +00:00
2019-10-07 20:03:24 -05:00
2019-08-10 22:09:09 +02:00
2019-10-28 13:07:41 -05:00
2019-09-11 17:04:14 -05:00
2019-06-30 16:41:30 +09:30
2019-10-15 19:10:05 +02:00
2019-11-01 17:27:20 -05:00
2019-10-09 21:04:16 -05:00
2019-06-04 01:29:39 +00:00
2019-09-28 00:31:02 +02:00
2019-04-09 12:37:16 -07:00
2019-10-11 02:52:04 +00:00
2019-09-25 04:01:56 +00:00
2019-10-11 02:52:04 +00:00
2019-10-11 02:52:04 +00:00
2019-10-09 22:00:38 -05:00
2019-04-09 12:37:16 -07:00
2019-11-01 17:27:20 -05:00
2019-04-10 23:48:39 +00:00
2019-10-09 16:51:42 -05:00
2019-04-12 03:32:48 +00:00
2019-07-24 16:16:53 +02:00
2019-05-31 17:57:10 +02:00
2019-06-17 21:46:25 +02:00
2019-11-01 17:27:20 -05:00
2019-11-11 22:30:01 +01:00
2019-11-11 22:30:01 +01:00
2019-11-11 22:30:01 +01:00
2019-09-06 14:35:01 +02:00
2019-10-09 22:00:38 -05:00
2019-10-09 22:00:38 -05:00
2019-06-07 01:23:51 +00:00
2018-02-07 00:46:49 +00:00
2019-11-01 17:27:20 -05:00
2019-06-07 01:23:51 +00:00
2019-10-14 18:58:44 -05:00
2019-09-06 14:35:01 +02:00
2019-02-07 20:33:50 +00:00
2019-09-11 00:57:39 +00:00
2019-09-11 00:57:39 +00:00
2019-10-09 21:04:16 -05:00
2018-04-25 14:33:38 +02:00
2019-10-15 19:10:05 +02:00
2019-06-04 01:29:39 +00:00
2019-11-08 00:22:03 +00:00
2019-07-27 05:16:22 +00:00
2019-09-25 12:29:53 +02:00
2019-09-11 00:57:39 +00:00
2019-10-29 12:18:06 -05:00
2019-10-11 02:52:04 +00:00
2019-10-28 13:07:41 -05:00
2019-09-08 16:02:00 +02:00
2019-07-16 06:10:58 +00:00
2018-09-14 22:11:23 +02:00
2019-10-11 10:05:08 -05:00
2019-09-30 00:20:16 +00:00
2019-07-28 07:24:04 +00:00
2019-07-28 07:24:04 +00:00
2019-11-01 17:27:20 -05:00
2019-11-01 17:27:20 -05:00
2019-10-14 18:58:44 -05:00
2019-09-12 05:11:56 +00:00
2019-07-26 03:53:03 +00:00
2019-06-28 03:31:43 +00:00
2019-06-28 03:31:43 +00:00