From 2eab1b66ff8476f287fc98c55578fdd89361551a Mon Sep 17 00:00:00 2001 From: arowser Date: Wed, 27 Jun 2018 15:22:35 +0800 Subject: [PATCH] add alias and color to getinfo --- lightningd/jsonrpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index b50fc7a13..54547b955 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -150,6 +150,8 @@ static void json_getinfo(struct command *cmd, json_object_start(response, NULL); json_add_pubkey(response, "id", &cmd->ld->id); + json_add_string(response, "alias", (const char *)cmd->ld->alias); + json_add_hex(response, "color", (const void *)cmd->ld->rgb, tal_len(cmd->ld->rgb)); if (cmd->ld->listen) { if (deprecated_apis) json_add_num(response, "port", cmd->ld->portnum);