Browse Source

jsonrpc: Add `connected` field to getpeers

This was implicitly indicated by the presence of the owner field,
making it explicit.
ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
17173a6322
  1. 1
      lightningd/peer_control.c

1
lightningd/peer_control.c

@ -862,6 +862,7 @@ static void json_getpeers(struct command *cmd,
json_add_string(response, "netaddr",
netaddr_name(response, &p->netaddr));
json_add_pubkey(response, "peerid", &p->id);
json_add_bool(response, "connected", p->owner != NULL);
if (p->owner)
json_add_string(response, "owner", p->owner->name);
if (p->scid)

Loading…
Cancel
Save