plugin: Map results back to the incoming JSON-RPC request

The final step in the JSON-RPC passthrough: map the result we got from
the plugin back to the original request we got from the client.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2018-11-26 19:54:06 +01:00
committed by Rusty Russell
parent 7c93cf00bb
commit e625fd7e82
2 changed files with 24 additions and 4 deletions

View File

@@ -19,6 +19,9 @@
/* Developer error in the parameters to param() call */
#define PARAM_DEV_ERROR -2
/* Plugin returned an error */
#define PLUGIN_ERROR -3
/* Errors from `pay`, `sendpay`, or `waitsendpay` commands */
#define PAY_IN_PROGRESS 200
#define PAY_RHASH_ALREADY_USED 201