umbrel@umbrel:~/umbrel $ ./scripts/app compose lightning exec lnd lncli pendingchannels
{
"total_limbo_balance": "136521",
"pending_open_channels": [],
"pending_closing_channels": [],
"pending_force_closing_channels": [
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:0",
"capacity": "150000",
"local_balance": "5965",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_REMOTE",
"commitment_type": "STATIC_REMOTE_KEY",
"num_forwarding_packages": "0",
"chan_status_flags": "",
"private": true,
"memo": ""
},
"closing_txid": "zzz",
"limbo_balance": "5965",
"maturity_height": 821983,
"blocks_til_maturity": -1213,
"recovered_balance": "0",
"pending_htlcs": [],
"anchor": "LIMBO"
},
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:1",
"capacity": "500000",
"local_balance": "38106",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_LOCAL",
"commitment_type": "STATIC_REMOTE_KEY",
"num_forwarding_packages": "0",
"chan_status_flags": "",
"private": true,
"memo": ""
},
"closing_txid": "zzz",
"limbo_balance": "38106",
"maturity_height": 821956,
"blocks_til_maturity": -1240,
"recovered_balance": "0",
"pending_htlcs": [],
"anchor": "LIMBO"
},
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:0",
"capacity": "500000",
"local_balance": "5871",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_REMOTE",
"commitment_type": "ANCHORS",
"num_forwarding_packages": "0",
"chan_status_flags": "",
"private": true,
"memo": ""
},
"closing_txid": "zzz",
"limbo_balance": "6201",
"maturity_height": 822466,
"blocks_til_maturity": -730,
"recovered_balance": "0",
"pending_htlcs": [],
"anchor": "LIMBO"
},
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:0",
"capacity": "150000",
"local_balance": "86249",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_LOCAL",
"commitment_type": "STATIC_REMOTE_KEY",
"num_forwarding_packages": "0",
"chan_status_flags": "",
"private": true,
"memo": ""
},
"closing_txid": "zzz",
"limbo_balance": "86249",
"maturity_height": 821941,
"blocks_til_maturity": -1255,
"recovered_balance": "0",
"pending_htlcs": [],
"anchor": "LIMBO"
}
],
"waiting_close_channels": [
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:1",
"capacity": "1500000",
"local_balance": "0",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_LOCAL",
"commitment_type": "ANCHORS",
"num_forwarding_packages": "0",
"chan_status_flags": "ChanStatusRestored",
"private": true,
"memo": ""
},
"limbo_balance": "0",
"commitments": {
"local_txid": "",
"remote_txid": "",
"remote_pending_txid": "",
"local_commit_fee_sat": "0",
"remote_commit_fee_sat": "0",
"remote_pending_commit_fee_sat": "0"
},
"closing_txid": ""
},
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:1",
"capacity": "1000000",
"local_balance": "0",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_LOCAL",
"commitment_type": "ANCHORS",
"num_forwarding_packages": "0",
"chan_status_flags": "ChanStatusRestored",
"private": true,
"memo": ""
},
"limbo_balance": "0",
"commitments": {
"local_txid": "",
"remote_txid": "",
"remote_pending_txid": "",
"local_commit_fee_sat": "0",
"remote_commit_fee_sat": "0",
"remote_pending_commit_fee_sat": "0"
},
"closing_txid": ""
},
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:1",
"capacity": "100000",
"local_balance": "0",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_REMOTE",
"commitment_type": "ANCHORS",
"num_forwarding_packages": "0",
"chan_status_flags": "ChanStatusRestored",
"private": true,
"memo": ""
},
"limbo_balance": "0",
"commitments": {
"local_txid": "",
"remote_txid": "",
"remote_pending_txid": "",
"local_commit_fee_sat": "0",
"remote_commit_fee_sat": "0",
"remote_pending_commit_fee_sat": "0"
},
"closing_txid": ""
},
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:0",
"capacity": "20000",
"local_balance": "0",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_REMOTE",
"commitment_type": "STATIC_REMOTE_KEY",
"num_forwarding_packages": "0",
"chan_status_flags": "ChanStatusRestored",
"private": true,
"memo": ""
},
"limbo_balance": "0",
"commitments": {
"local_txid": "",
"remote_txid": "",
"remote_pending_txid": "",
"local_commit_fee_sat": "0",
"remote_commit_fee_sat": "0",
"remote_pending_commit_fee_sat": "0"
},
"closing_txid": ""
},
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:1",
"capacity": "1000000",
"local_balance": "0",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_REMOTE",
"commitment_type": "ANCHORS",
"num_forwarding_packages": "0",
"chan_status_flags": "ChanStatusRestored",
"private": true,
"memo": ""
},
"limbo_balance": "0",
"commitments": {
"local_txid": "",
"remote_txid": "",
"remote_pending_txid": "",
"local_commit_fee_sat": "0",
"remote_commit_fee_sat": "0",
"remote_pending_commit_fee_sat": "0"
},
"closing_txid": ""
},
{
"channel": {
"remote_node_pub": "xxx",
"channel_point": "yyy:1",
"capacity": "1000000",
"local_balance": "0",
"remote_balance": "0",
"local_chan_reserve_sat": "0",
"remote_chan_reserve_sat": "0",
"initiator": "INITIATOR_LOCAL",
"commitment_type": "ANCHORS",
"num_forwarding_packages": "0",
"chan_status_flags": "ChanStatusLocalDataLoss|ChanStatusRestored",
"private": true,
"memo": ""
},
"limbo_balance": "0",
"commitments": {
"local_txid": "",
"remote_txid": "",
"remote_pending_txid": "",
"local_commit_fee_sat": "0",
"remote_commit_fee_sat": "0",
"remote_pending_commit_fee_sat": "0"
},
"closing_txid": ""
}
]
}
- So me are pending_force_closing_channels, some are waiting_close_channels
- Some are INITIATOR_LOCAL (I haven’t done anything), some are INITIATOR_REMOTE.
- Some are commitment ANCHORS, some are STATIC_REMOTE_KEY.
- Some have a closing_txid, some don’t.
- etc…