mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
listpeers: always show all the inflights
If you close a channel, the state won't be DUALOPEND_AWAITING_LOCKIN
This commit is contained in:
@@ -766,7 +766,7 @@ static void json_add_channel(struct lightningd *ld,
|
|||||||
type_to_string(tmpctx, struct channel_id, &channel->cid));
|
type_to_string(tmpctx, struct channel_id, &channel->cid));
|
||||||
json_add_txid(response, "funding_txid", &channel->funding_txid);
|
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;
|
struct channel_inflight *initial, *inflight;
|
||||||
u32 last_feerate, next_feerate, feerate;
|
u32 last_feerate, next_feerate, feerate;
|
||||||
u8 feestep;
|
u8 feestep;
|
||||||
|
|||||||
Reference in New Issue
Block a user