mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
add alias and color to getinfo
This commit is contained in:
@@ -150,6 +150,8 @@ static void json_getinfo(struct command *cmd,
|
|||||||
|
|
||||||
json_object_start(response, NULL);
|
json_object_start(response, NULL);
|
||||||
json_add_pubkey(response, "id", &cmd->ld->id);
|
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 (cmd->ld->listen) {
|
||||||
if (deprecated_apis)
|
if (deprecated_apis)
|
||||||
json_add_num(response, "port", cmd->ld->portnum);
|
json_add_num(response, "port", cmd->ld->portnum);
|
||||||
|
|||||||
Reference in New Issue
Block a user