From f468c204eb3f0e28d7aff025d01b1776fbd794df Mon Sep 17 00:00:00 2001 From: niftynei Date: Wed, 19 May 2021 19:13:18 -0500 Subject: [PATCH] listpeers: always show all the inflights If you close a channel, the state won't be DUALOPEND_AWAITING_LOCKIN --- lightningd/peer_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index 2d4f3dfd9..3f0f21d55 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -766,7 +766,7 @@ static void json_add_channel(struct lightningd *ld, type_to_string(tmpctx, struct channel_id, &channel->cid)); json_add_txid(response, "funding_txid", &channel->funding_txid); - if (channel->state == DUALOPEND_AWAITING_LOCKIN) { + if (!list_empty(&channel->inflights)) { struct channel_inflight *initial, *inflight; u32 last_feerate, next_feerate, feerate; u8 feestep;