Skip to content

Channels stuck in ONCHAIND_OUR_UNILATERAL state #721

Closed
@hectorj

Description

@hectorj

Hi! I have multiple channels which seems to be stuck in the ONCHAIND_OUR_UNILATERAL state.

Here is the list:

lightning-cli listpeers | grep -B2 ONCHAIND_OUR_UNILATERAL
�[3;J
		{ "id" : "020de4c7b3fcca7eac8fe5ac0fb9c87400db5a931baec35251fe7c55f0d0f91773", "connected" : false, "channels" : 
			[ 
				{ "state" : "ONCHAIND_OUR_UNILATERAL", "short_channel_id" : "505357:1830:0", "funding_txid" : "3d48f673f98738bb5d4edb04d57028230f3e23fd244bb8e848ddd9f53d4f3026", "msatoshi_to_us" : 0, "msatoshi_total" : 70000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "to_self_delay" : 144, "max_accepted_htlcs" : 483 } ] }, 
--
  		{ "id" : "035f1498c929d4cefba4701ae36a554691f526ff60b1766badd5a49b3c8b68e1d8", "connected" : false, "channels" : 
			[ 
				{ "state" : "ONCHAIND_OUR_UNILATERAL", "short_channel_id" : "505026:359:1", "funding_txid" : "ce8f29dc21a96f1e1d0e60db0f44414943b31c64487718209c254d3708da8991", "msatoshi_to_us" : 250000000, "msatoshi_total" : 250000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "to_self_delay" : 144, "max_accepted_htlcs" : 483 } ] }, 
--
  		{ "id" : "03db669c2f2a3d596c4b2110e6334a147e80019d37bb8c94707aa7751b8e9756d2", "connected" : false, "channels" : 
			[ 
				{ "state" : "ONCHAIND_OUR_UNILATERAL", "short_channel_id" : "504786:1466:1", "funding_txid" : "7d6705eebdc34e0073614fbb624817a9777dd68e4c5e25f9a50c32b7a56c73ac", "msatoshi_to_us" : 228285000, "msatoshi_total" : 228285000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "to_self_delay" : 144, "max_accepted_htlcs" : 483 } ] }, 
--
  		{ "id" : "03cbf298b068300be33f06c947b9d3f00a0f0e8089da3233f5db37e81d3a596fe1", "connected" : false, "channels" : 
			[ 
				{ "state" : "ONCHAIND_OUR_UNILATERAL", "short_channel_id" : "504710:651:1", "funding_txid" : "4f73ae2d1cb668b97e9cb5ee06450a981c4263046a29c786e748a4af00f65574", "msatoshi_to_us" : 10000, "msatoshi_total" : 100000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "to_self_delay" : 144, "max_accepted_htlcs" : 483 } ] }, 
		{ "id" : "02aeb693e2dfb2f890c65dcf27e6eb7d52dd3e4f7b74ce5fe646675793625f9b51", "connected" : false, "channels" : 
			[ 
				{ "state" : "ONCHAIND_OUR_UNILATERAL", "short_channel_id" : "504690:1724:1", "funding_txid" : "afeb0b5d5e1b89dd4c457084f86767261826e139b07e6e7c62a0d31cca8a16f6", "msatoshi_to_us" : 150000000, "msatoshi_total" : 150000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "to_self_delay" : 144, "max_accepted_htlcs" : 483 } ] }, 
		{ "id" : "02eccebd9ed98f6d267080a58194dbe554a2b33d976eb95bb7c116d00fd64c4a13", "connected" : false, "channels" : 
			[ 
				{ "state" : "ONCHAIND_OUR_UNILATERAL", "short_channel_id" : "504681:1734:0", "funding_txid" : "12637c45f213673591db085f9ca8581498f33a7f165278885f4a18c6229a7cc9", "msatoshi_to_us" : 150000000, "msatoshi_total" : 150000000, "dust_limit_satoshis" : 546, "max_htlc_value_in_flight_msat" : 18446744073709551615, "channel_reserve_satoshis" : 0, "htlc_minimum_msat" : 0, "to_self_delay" : 144, "max_accepted_htlcs" : 483 } ] },

Here are links to the funding transactions:

I tried asking c-lightning to close them again, but it refuses with the message "Peer is in state ONCHAIND_OUR_UNILATERAL" (which seems normal)

The funds do not seem to appear in my listfunds.

Is there a way to properly close them, or forget them (if funds are lost anyway)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions