ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.84k stars 901 forks source link

Stuck on CLOSINGD_COMPLETE:Waiting for their initial closing fee offer #6655

Closed pabpas closed 1 year ago

pabpas commented 1 year ago

Issue and Steps to Reproduce

Peer started a channel close some months ago but got stuck on CLOSINGD_COMPLETE. Unfortunately I can't force close or dev-fail because:

{
   "code": -1,
   "message": "Peer has no active channel"
}  

Any suggestion to close the channel for good?

$ lightning-cli listpeerchannels 0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4
{
   "channels": [
      {
         "peer_id": "0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4",
         "peer_connected": true,
         "channel_type": {  
            "bits": [
               12
            ],
            "names": [
               "static_remotekey/even"
            ]
         },
         "state": "CLOSINGD_COMPLETE",
         "scratch_txid": "649535433dd52f634b9aeb8c6ef12a0804c5bdab6e13f18bcc3dabf2ed7c5d57",
         "last_tx_fee_msat": 763000,
         "feerate": {
            "perkw": 3736,  
            "perkb": 14944  
         },
         "owner": "closingd",
         "short_channel_id": "736315x2614x1",
         "direction": 0,
         "channel_id": "7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e",
         "funding_txid": "3f13f6fab5d0a535d88fb91893751610070613bad24fff3bb26ad677e377bf7f",
         "funding_outnum": 1,
         "close_to_addr": "bc1qjqdfa5awfc9evzjj7kv7ua9pu5uy4ry39flhw2",
         "close_to": "0014901a9ed3ae4e0b960a52f599ee74a1e5384a8c91",
         "private": false,  
         "opener": "remote",
         "closer": "remote",
         "features": [
            "option_static_remotekey"
         ],
         "funding": {
            "local_funds_msat": 0,
            "remote_funds_msat": 1042000000,
            "pushed_msat": 0
         },
         "to_us_msat": 42352957,
         "min_to_us_msat": 0,
         "max_to_us_msat": 1013670783,
         "total_msat": 1042000000,
         "fee_base_msat": 100,
         "fee_proportional_millionths": 250,
         "dust_limit_msat": 546000,
         "max_total_htlc_in_msat": 18446744073709551615,
         "their_reserve_msat": 10420000,
         "our_reserve_msat": 10420000,
         "spendable_msat": 31932957,
         "receivable_msat": 981247043,
         "minimum_htlc_in_msat": 0,
         "minimum_htlc_out_msat": 1,
         "maximum_htlc_out_msat": 1031580000,
         "their_to_self_delay": 144,
         "our_to_self_delay": 144,
         "max_accepted_htlcs": 30,
         "state_changes": [
            {
               "timestamp": "2022-05-14T08:07:16.510Z",
               "old_state": "CHANNELD_AWAITING_LOCKIN",
               "new_state": "CHANNELD_NORMAL",
               "cause": "remote",
               "message": "Lockin complete"
            },
            {  
               "timestamp": "2023-07-12T19:30:04.795Z",
               "old_state": "CHANNELD_NORMAL",
               "new_state": "CHANNELD_SHUTTING_DOWN",
               "cause": "remote",
               "message": "Peer closes channel"
            },
            {  
               "timestamp": "2023-07-12T19:30:05.014Z",
               "old_state": "CHANNELD_SHUTTING_DOWN",
               "new_state": "CLOSINGD_SIGEXCHANGE",
               "cause": "remote",
               "message": "Start closingd"
            },
            {  
               "timestamp": "2023-07-12T19:30:06.079Z",
               "old_state": "CLOSINGD_SIGEXCHANGE",
               "new_state": "CLOSINGD_COMPLETE",
               "cause": "remote",
               "message": "Closing complete"
            }
         ],
         "status": [
            "CLOSINGD_COMPLETE:Negotiating closing fee between 1310sat and 1042000sat satoshi (ideal 2008sat) using step 50%",
            "CLOSINGD_COMPLETE:Waiting for their initial closing fee offer"
         ],
         "in_payments_offered": 2794,
         "in_offered_msat": 230972387638,
         "in_payments_fulfilled": 33,
         "in_fulfilled_msat": 4197541261,
         "out_payments_offered": 2732,
         "out_offered_msat": 360954675191,
         "out_payments_fulfilled": 33,
         "out_fulfilled_msat": 4155188304,
         "htlcs": []
      }
   ]
}
2023-09-08T06:27:43.972Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: Watching for funding txid: 3f13f6fab5d0a535d88fb91893751610070613bad24fff3bb26ad677e377bf7f
2023-09-08T06:28:06.474Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: Connect IN
2023-09-08T06:28:06.516Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_out WIRE_INIT
2023-09-08T06:28:06.518Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_in WIRE_INIT
2023-09-08T06:28:06.520Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: Handed peer, entering loop
2023-09-08T06:28:06.700Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: Activating for message WIRE_CHANNEL_REESTABLISH
2023-09-08T06:28:06.701Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: Reestablish on CLOSINGD_COMPLETE channel: using channeld to reply
2023-09-08T06:28:06.743Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: pid 2206286, msgfd 102
2023-09-08T06:28:06.743Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: Already have funding locked in (and ready to announce)
2023-09-08T06:28:06.801Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: option_static_remotekey = 1, option_anchor_outputs = 0 option_anchors_zero_fee_htlc_tx = 0
2023-09-08T06:28:06.802Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: init REMOTE: remote_per_commit = 02ead869ed388512cfbc0884ab4d8d6341af661ccf40e05349522c075021f47ace, old_remote_per_commit = 020877d0e0607adf2328fd6a0a3da50aa7a383ccc11f21bc7d9a47df53106cbddf next_idx_local = 13005 next_idx_remote = 13009 revocations_received = 13008 feerates { RCVD_ADD_ACK_REVOCATION:3736 } range 1812-50270 blockheights { RCVD_ADD_ACK_REVOCATION:0 }, our current 806704
2023-09-08T06:28:06.803Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: peer_out WIRE_CHANNEL_REESTABLISH
2023-09-08T06:28:06.804Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: billboard: Sent reestablish, waiting for theirs
2023-09-08T06:28:06.804Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-hsmd: Got WIRE_HSMD_GET_PER_COMMITMENT_POINT
2023-09-08T06:28:06.842Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: peer_in WIRE_CHANNEL_REESTABLISH
2023-09-08T06:28:06.843Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: Got reestablish commit=13009 revoke=13004
2023-09-08T06:28:06.844Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: next_revocation_number = 13004
2023-09-08T06:28:06.846Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: option_static_remotekey: fields are correct
2023-09-08T06:28:06.847Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-hsmd: Got WIRE_HSMD_GET_PER_COMMITMENT_POINT
2023-09-08T06:28:06.847Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: send_channel_update 2
2023-09-08T06:28:06.848Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: peer_out WIRE_SHUTDOWN
2023-09-08T06:28:06.849Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: billboard: Channel ready for use. They need our announcement signatures. Shutdown messages exchanged.
2023-09-08T06:28:06.851Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-hsmd: Got WIRE_HSMD_GET_PER_COMMITMENT_POINT
2023-09-08T06:28:06.851Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: No upgrade: no next_to_send received
2023-09-08T06:28:06.887Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: pid 2206288, msgfd 78
2023-09-08T06:28:06.887Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: Status closed, but not exited. Killing
2023-09-08T06:28:06.955Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: Expected closing weight = 724, fee 2008sat (min 1311sat, max 1042000sat)
2023-09-08T06:28:06.956Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: out = 42352sat/999647sat
2023-09-08T06:28:06.957Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: dustlimit = 546sat
2023-09-08T06:28:06.958Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: fee = 2008sat
2023-09-08T06:28:06.959Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: fee negotiation step = 50%
2023-09-08T06:28:06.959Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: billboard perm: Negotiating closing fee between 1311sat and 1042000sat satoshi (ideal 2008sat) using step 50%
2023-09-08T06:28:06.964Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: billboard: Waiting for their initial closing fee offer
2023-09-08T06:28:12.441Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: Got depth change 0->70393 for 3f13f6fab5d0a535d88fb91893751610070613bad24fff3bb26ad677e377bf7f
2023-09-08T06:28:12.441Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: Funding tx 3f13f6fab5d0a535d88fb91893751610070613bad24fff3bb26ad677e377bf7f depth 70393 of 3
2023-09-08T06:28:12.441Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: Funding tx 3f13f6fab5d0a535d88fb91893751610070613bad24fff3bb26ad677e377bf7f confirmed, but peer in state CLOSINGD_COMPLETE
2023-09-08T06:28:12.462Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T06:28:12.462Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: chain not synced, not updating blockheight
2023-09-08T06:29:02.057Z INFO    0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: Peer connection lost
2023-09-08T06:29:02.057Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: Status closed, but not exited. Killing
2023-09-08T06:29:02.057Z INFO    0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: Peer transient failure in CLOSINGD_COMPLETE: closingd: Owning subdaemon closingd died (62208)
2023-09-08T06:29:02.058Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-lightningd: peer_disconnect_done
2023-09-08T06:29:02.058Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-lightningd: Not reconnecting: no active channel
2023-09-08T06:29:02.058Z DEBUG   plugin-funder: Cleaning up inflights for peer id 0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4
2023-09-08T06:29:04.561Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: Connect IN
2023-09-08T06:29:04.561Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_out WIRE_INIT
2023-09-08T06:29:04.653Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_in WIRE_INIT
2023-09-08T06:29:04.655Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: Handed peer, entering loop
2023-09-08T06:29:04.771Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: Activating for message WIRE_CHANNEL_REESTABLISH
2023-09-08T06:29:04.771Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: Reestablish on CLOSINGD_COMPLETE channel: using channeld to reply
2023-09-08T06:29:04.806Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: pid 2206359, msgfd 104
2023-09-08T06:29:04.807Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: Already have funding locked in (and ready to announce)
2023-09-08T06:29:04.809Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: Received channel_update for channel 806650x2109x1/0 now DISABLED
2023-09-08T06:29:04.811Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: option_static_remotekey = 1, option_anchor_outputs = 0 option_anchors_zero_fee_htlc_tx = 0
2023-09-08T06:29:04.811Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: init REMOTE: remote_per_commit = 02ead869ed388512cfbc0884ab4d8d6341af661ccf40e05349522c075021f47ace, old_remote_per_commit = 020877d0e0607adf2328fd6a0a3da50aa7a383ccc11f21bc7d9a47df53106cbddf next_idx_local = 13005 next_idx_remote = 13009 revocations_received = 13008 feerates { RCVD_ADD_ACK_REVOCATION:3736 } range 1810-50270 blockheights { RCVD_ADD_ACK_REVOCATION:0 }, our current 806707
2023-09-08T06:29:04.812Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-hsmd: Got WIRE_HSMD_GET_PER_COMMITMENT_POINT
2023-09-08T06:29:04.813Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-hsmd: Got WIRE_HSMD_GET_PER_COMMITMENT_POINT
2023-09-08T06:29:04.814Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: peer_out WIRE_CHANNEL_REESTABLISH
2023-09-08T06:29:04.814Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: billboard: Sent reestablish, waiting for theirs
2023-09-08T06:29:04.815Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: peer_in WIRE_CHANNEL_REESTABLISH
2023-09-08T06:29:04.815Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: Got reestablish commit=13009 revoke=13004
2023-09-08T06:29:04.815Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-hsmd: Got WIRE_HSMD_GET_PER_COMMITMENT_POINT
2023-09-08T06:29:04.816Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: next_revocation_number = 13004
2023-09-08T06:29:04.816Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: option_static_remotekey: fields are correct
2023-09-08T06:29:04.816Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: send_channel_update 2
2023-09-08T06:29:04.816Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: peer_out WIRE_SHUTDOWN
2023-09-08T06:29:04.817Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: billboard: Channel ready for use. They need our announcement signatures. Shutdown messages exchanged.
2023-09-08T06:29:04.817Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: No upgrade: no next_to_send received
2023-09-08T06:29:04.855Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: pid 2206360, msgfd 102
2023-09-08T06:29:04.855Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-channeld-chan#41: Status closed, but not exited. Killing
2023-09-08T06:29:04.886Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: Received channel_update for channel 799127x1064x1/1 now DISABLED
2023-09-08T06:29:04.887Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: Received node_announcement for node 02cfa520137896a0b8a9f6f8a576bedbee801ad318fa0dbac32e3232227169b5c1
2023-09-08T06:29:04.887Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: Received node_announcement for node 0298fd86d084438c9c9aa6d25dc3d926be304b3a6a204139ddade991d3a04fa675
2023-09-08T06:29:04.887Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: Received node_announcement for node 039b18a4c32a63d7d390c4fe61b26598fc9aad2ce19303ca5fec01f10687d154e8
2023-09-08T06:29:04.888Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: Expected closing weight = 724, fee 2008sat (min 1310sat, max 1042000sat)
2023-09-08T06:29:04.888Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: out = 42352sat/999647sat
2023-09-08T06:29:04.888Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: dustlimit = 546sat
2023-09-08T06:29:04.888Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: fee = 2008sat
2023-09-08T06:29:04.889Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: fee negotiation step = 50%
2023-09-08T06:29:04.889Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: billboard perm: Negotiating closing fee between 1310sat and 1042000sat satoshi (ideal 2008sat) using step 50%
2023-09-08T06:29:04.889Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-closingd-chan#41: billboard: Waiting for their initial closing fee offer
2023-09-08T06:29:21.028Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: seeker: disabling gossip
2023-09-08T06:29:21.031Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_out WIRE_GOSSIP_TIMESTAMP_FILTER
2023-09-08T06:32:17.480Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T07:06:28.664Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T07:07:01.087Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T07:09:35.120Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T07:22:45.786Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_in WIRE_GOSSIP_TIMESTAMP_FILTER
2023-09-08T07:40:14.545Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T07:42:44.697Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_in WIRE_GOSSIP_TIMESTAMP_FILTER
2023-09-08T07:54:48.744Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T08:02:44.621Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_in WIRE_GOSSIP_TIMESTAMP_FILTER
2023-09-08T08:04:53.433Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T08:14:32.718Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T08:22:44.668Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_in WIRE_GOSSIP_TIMESTAMP_FILTER
2023-09-08T08:34:07.010Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T08:39:21.249Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: seeker: state = PROBING_SCIDS Seeking scids 791566 - 792589
2023-09-08T08:39:21.249Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: sending query_channel_range for blocks 791566+1024
2023-09-08T08:39:21.517Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: reply_channel_range 791566+1024 (of 791566+1024) 40 scids
2023-09-08T08:47:21.418Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T08:59:55.580Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T09:00:27.445Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T09:04:03.246Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T09:12:24.612Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T09:14:28.294Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T09:18:01.939Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T09:42:54.608Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T09:42:54.643Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_in WIRE_GOSSIP_TIMESTAMP_FILTER
2023-09-08T09:51:29.193Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T09:57:31.963Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T10:01:04.861Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T10:02:44.614Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_in WIRE_GOSSIP_TIMESTAMP_FILTER
2023-09-08T10:09:07.575Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T10:20:45.881Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T10:22:44.720Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-connectd: peer_in WIRE_GOSSIP_TIMESTAMP_FILTER
2023-09-08T10:46:54.629Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T11:06:59.426Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T11:21:31.566Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T11:29:35.367Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T11:32:54.718Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T12:12:10.997Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T12:17:46.371Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T12:46:52.240Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T13:13:56.176Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T13:23:02.057Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T13:35:07.786Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T13:36:11.048Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T13:38:45.030Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T13:45:22.421Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T13:52:44.707Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-gossipd: Received node_announcement for node 0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4
2023-09-08T13:56:26.148Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T14:02:29.013Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T14:19:33.357Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T14:20:34.695Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e
2023-09-08T14:22:36.083Z DEBUG   0362db138fca2b24c5a42e81276e3e82704b8198c4e557bc25a7870865290571a4-chan#41: attempting update blockheight 7fbf77e377d66ab23bff4fd2ba1306071016759318b98fd835a5d0b5faf6133e

getinfo output

   "version": "v23.08",
   "blockheight": 806753,
   "network": "bitcoin",
   "our_features": {
      "init": "08a0802a0269a2",
      "node": "88a0802a0269a2",
      "channel": "",
      "invoice": "02000022024100"
pabpas commented 1 year ago

So I missed an important thing, lightningd is trying to broadcast the close tx but it is rejected by bitcoind:

2023-09-08T06:27:44.046Z DEBUG   plugin-bcli: sendrawtx exit 26 (bitcoin-cli sendrawtransaction 02...) error code: -26\nerror message:\nmempool min fee not met, 763 < 1313

I guess that transaction is the last agreed mutual close?

         "state": "CLOSINGD_COMPLETE",
         "scratch_txid": "649535433dd52f634b9aeb8c6ef12a0804c5bdab6e13f18bcc3dabf2ed7c5d57",
         "last_tx_fee_msat": 763000,
         "feerate": {
            "perkw": 3736,  
            "perkb": 14944  

And this feerate (14sat/vB) would be for a force close? Can I force CLN to broadcast this one instead of the mutual one?

pabpas commented 1 year ago

The close transaction was finally broadcast and confirmed. I still would like to know how to force close in a case like this, instead of waiting so many months, but to find that out this issue is probably not the right place.

wchancao commented 8 months ago

Hi, im having the same issue... Did CLN broadcast the tx automatically or did you broadcast the tx manually?

pabpas commented 8 months ago

CLN keeps track and continues to try until tx is confirmed. With the current fees I don't think that you have to wait as long as I did.