mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
add alias and color to getinfo
This commit is contained in:
parent
25f60f9456
commit
2eab1b66ff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user