mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user