From 00115ee7f04a0e9fe5c58ec04b9f9dd07c039c9d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 15 Sep 2020 14:23:11 +0930 Subject: [PATCH] lightningd: remove deprecated rpc_command hook return. Signed-off-by: Rusty Russell Changelog-Removed: JSON API: The hook `rpc_command` returning `{"continue": true}` (deprecated 0.8.1) --- lightningd/jsonrpc.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index fc4b83fd7..49fa83fbb 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -712,28 +712,6 @@ rpc_command_hook_callback(struct rpc_command_hook_payload *p STEALS, return was_pending(command_exec(p->cmd->jcon, p->cmd, p->buffer, p->request, params)); -#ifdef COMPAT_V080 - if (deprecated_apis) { - const jsmntok_t *tok_continue; - bool exec; - tok_continue = json_get_member(buffer, resulttok, "continue"); - if (tok_continue && json_to_bool(buffer, tok_continue, &exec) && exec) { - static bool warned = false; - if (!warned) { - warned = true; - log_unusual(p->cmd->ld->log, - "Plugin returned 'continue' : true " - "to rpc_command hook. " - "This is now deprecated and " - "you should return with " - "{'result': 'continue'} instead."); - } - return was_pending(command_exec(p->cmd->jcon, p->cmd, p->buffer, - p->request, params)); - } - } -#endif /* defined(COMPAT_V080) */ - innerresulttok = json_get_member(buffer, resulttok, "result"); if (innerresulttok) { if (json_tok_streq(buffer, innerresulttok, "continue")) {