From bfe342c64b5fb298f6739e940ddcaf778af3ba33 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 10 Sep 2022 11:28:31 +0930 Subject: [PATCH] lightningd: remove double-wrapped rpc_command hook. Somehow we missed this deprecation, found by grep. Changelog-Removed: JSON API: Removed double wrapping of `rpc_command` payload in `rpc_command` JSON field (deprecated v0.8.2) Signed-off-by: Rusty Russell --- lightningd/jsonrpc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index 357297f2f..d48ec8509 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -664,11 +664,6 @@ static void rpc_command_hook_serialize(struct rpc_command_hook_payload *p, char *key; json_object_start(s, "rpc_command"); -#ifdef COMPAT_V081 - if (deprecated_apis) - json_add_tok(s, "rpc_command", p->request, p->buffer); -#endif - json_for_each_obj(i, tok, p->request) { key = tal_strndup(NULL, p->buffer + tok->start, tok->end - tok->start);