listchannels: add funding_outnum to listchannels

Changelog-Added: JSONRPC: `listchannels` now includes the `funding_outnum`
This commit is contained in:
niftynei
2022-01-13 16:35:29 -06:00
committed by Rusty Russell
parent 36ca175ec7
commit 081ef05dd1
3 changed files with 11 additions and 1 deletions

View File

@@ -656,6 +656,7 @@ static void json_add_channel(struct lightningd *ld,
json_add_string(response, "channel_id",
type_to_string(tmpctx, struct channel_id, &channel->cid));
json_add_txid(response, "funding_txid", &channel->funding.txid);
json_add_num(response, "funding_outnum", channel->funding.n);
if (!list_empty(&channel->inflights)) {
struct channel_inflight *initial, *inflight;