mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
plugin_control: more descriptive key for 'plugin stop' result
Changelog-Changed: JSONRPC: 'plugin stop' result is now accessible using the 'result' key instead of the empty ('') key.
This commit is contained in:
committed by
ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent
77eb9e45b2
commit
1cfb8425f5
@@ -1,3 +1,4 @@
|
||||
#include <lightningd/options.h>
|
||||
#include <lightningd/plugin_control.h>
|
||||
#include <lightningd/plugin_hook.h>
|
||||
|
||||
@@ -206,7 +207,11 @@ plugin_dynamic_stop(struct command *cmd, const char *plugin_name)
|
||||
plugin_kill(p, "%s stopped by lightningd via RPC", plugin_name);
|
||||
tal_free(p);
|
||||
response = json_stream_success(cmd);
|
||||
json_add_string(response, "",
|
||||
if (deprecated_apis)
|
||||
json_add_string(response, "",
|
||||
take(tal_fmt(NULL, "Successfully stopped %s.",
|
||||
plugin_name)));
|
||||
json_add_string(response, "result",
|
||||
take(tal_fmt(NULL, "Successfully stopped %s.",
|
||||
plugin_name)));
|
||||
return command_success(cmd, response);
|
||||
|
||||
Reference in New Issue
Block a user