plugins/topology: use listpeerchannels.

This commit is contained in:
Vincenzo Palazzo
2023-01-12 11:52:10 +10:30
committed by Rusty Russell
parent a56c890ae5
commit c488561282
3 changed files with 14 additions and 21 deletions

View File

@@ -1915,8 +1915,8 @@ static struct listpeers_channel *json_to_listpeers_channel(const tal_t *ctx,
*aliastok = json_get_member(buffer, tok, "alias"),
*max_htlcs = json_get_member(buffer, tok, "max_accepted_htlcs"),
*htlcstok = json_get_member(buffer, tok, "htlcs"),
*idtok = json_get_member(buffer, tok, "id"),
*conntok = json_get_member(buffer, tok, "connected");
*idtok = json_get_member(buffer, tok, "peer_id"),
*conntok = json_get_member(buffer, tok, "peer_connected");
chan = tal(ctx, struct listpeers_channel);