This is on 08/14's master branch: v23.08rc2-12-g5531c9d-modded.
I've been playing with Monday's CLN master, and am repeatedly hitting these Bad closing_signed signature when attempting a mutual close with LND nodes. Here below are some initial details.
CLI:
$ dan-cli -k close id=023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f feerange='["7000perkb", "15000perkb"]'
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
# Sending closing fee offer 966sat, with range 966sat-2070sat
LOG FILE:
2023-08-17T16:08:12.832Z DEBUG lightningd: Feerate estimate for 12 blocks set to 1565 (was 1550)
2023-08-17T16:08:12.832Z DEBUG lightningd: update_feerates: feerate = 2415, min=770, max=241450, penalty=1565
2023-08-17T16:08:39.914Z INFO 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-chan#1: State changed from CHANNELD_NORMAL to CHANNELD_SHUTTING_DOWN
2023-08-17T16:08:39.915Z DEBUG lightningd: close_command: timeout = 172800
2023-08-17T16:08:39.945Z DEBUG 02918e78d1538cdcd9d2fc292009fdc05d6d5d66d7706e7074dfa00e7f43321dce-hsmd: Got WIRE_HSMD_CUPDATE_SIG_REQ
2023-08-17T16:08:39.945Z DEBUG hsmd: Client: Received message 3 from client
2023-08-17T16:08:47.952Z DEBUG 02918e78d1538cdcd9d2fc292009fdc05d6d5d66d7706e7074dfa00e7f43321dce-hsmd: Got WIRE_HSMD_CUPDATE_SIG_REQ
2023-08-17T16:08:47.952Z DEBUG hsmd: Client: Received message 3 from client
2023-08-17T16:08:47.959Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: pid 15619, msgfd 69
2023-08-17T16:08:47.960Z INFO 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-chan#1: State changed from CHANNELD_SHUTTING_DOWN to CLOSINGD_SIGEXCHANGE
2023-08-17T16:08:47.972Z DEBUG hsmd: new_client: 1
2023-08-17T16:08:47.973Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: deriving max fee from rate 3750 -> 2070sat
2023-08-17T16:08:47.973Z UNUSUAL 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Our ideal fee is 889sat (1612 sats/perkw), but our minimum is 966sat: using that
2023-08-17T16:08:47.973Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Expected closing weight = 552, fee 966sat (min 966sat, max 2070sat)
2023-08-17T16:08:47.973Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: out = 124562sat/437sat
2023-08-17T16:08:47.973Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: dustlimit = 546sat
2023-08-17T16:08:47.973Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: fee = 966sat
2023-08-17T16:08:47.973Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: fee negotiation step = 50%
2023-08-17T16:08:47.973Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: billboard perm: Negotiating closing fee between 966sat and 2070sat satoshi (ideal 966sat) using step 50%
2023-08-17T16:08:47.973Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Making close tx at = 124562sat/437sat fee 966sat
2023-08-17T16:08:47.974Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-hsmd: Got WIRE_HSMD_SIGN_MUTUAL_CLOSE_TX
2023-08-17T16:08:47.974Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: sending fee offer 966sat
2023-08-17T16:08:47.974Z DEBUG hsmd: Client: Received message 21 from client
2023-08-17T16:08:47.974Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: peer_out WIRE_CLOSING_SIGNED
2023-08-17T16:08:47.975Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: billboard: Waiting for their initial closing fee offer: ours was 966sat
2023-08-17T16:08:50.740Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: peer_in WIRE_CLOSING_SIGNED
2023-08-17T16:08:50.740Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Making close tx at = 124562sat/437sat fee 1262sat
2023-08-17T16:08:50.751Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Making close tx at = 124562sat/0sat fee 1262sat
2023-08-17T16:08:50.751Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: peer_out WIRE_WARNING
2023-08-17T16:08:50.751Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: billboard perm: Bad closing_signed signature for 020000000106bd7e70ef9be084f9d29f6169cc5141f629c1ecdbb9a206e878f9ed24506be80100000000ffffffff01a4e1010000000000160014edb6b887ffa402cfce15e92977dcb5b77828bab500000000 (and trimmed version 020000000106bd7e70ef9be084f9d29f6169cc5141f629c1ecdbb9a206e878f9ed24506be80100000000ffffffff01a4e1010000000000160014edb6b887ffa402cfce15e92977dcb5b77828bab500000000)
2023-08-17T16:08:50.752Z DEBUG connectd: drain_peer
2023-08-17T16:08:50.752Z DEBUG connectd: drain_peer draining subd!
2023-08-17T16:08:50.752Z INFO 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-chan#1: Peer transient failure in CLOSINGD_SIGEXCHANGE: closingd WARNING: Bad closing_signed signature for 020000000106bd7e70ef9be084f9d29f6169cc5141f629c1ecdbb9a206e878f9ed24506be80100000000ffffffff01a4e1010000000000160014edb6b887ffa402cfce15e92977dcb5b77828bab500000000 (and trimmed version 020000000106bd7e70ef9be084f9d29f6169cc5141f629c1ecdbb9a206e878f9ed24506be80100000000ffffffff01a4e1010000000000160014edb6b887ffa402cfce15e92977dcb5b77828bab500000000)
2023-08-17T16:08:50.752Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-lightningd: peer_disconnect_done
2023-08-17T16:08:50.752Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-lightningd: Will try reconnect in 1 seconds
2023-08-17T16:08:50.752Z DEBUG plugin-funder: Cleaning up inflights for peer id 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f
2023-08-17T16:08:51.750Z DEBUG connectd: maybe_free_peer freeing peer!
2023-08-17T16:08:52.738Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-connectd: Connected out, starting crypto
2023-08-17T16:08:52.840Z DEBUG 02918e78d1538cdcd9d2fc292009fdc05d6d5d66d7706e7074dfa00e7f43321dce-hsmd: Got WIRE_HSMD_ECDH_REQ
2023-08-17T16:08:52.840Z DEBUG hsmd: Client: Received message 1 from client
2023-08-17T16:08:52.841Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-connectd: Connect OUT
2023-08-17T16:08:52.841Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-connectd: peer_out WIRE_INIT
2023-08-17T16:08:52.972Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-connectd: peer_in WIRE_INIT
2023-08-17T16:08:52.972Z DEBUG lightningd: Calling peer_connected hook of plugin chanbackup
2023-08-17T16:08:52.981Z DEBUG 02918e78d1538cdcd9d2fc292009fdc05d6d5d66d7706e7074dfa00e7f43321dce-hsmd: Got WIRE_HSMD_CUPDATE_SIG_REQ
2023-08-17T16:08:52.981Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-connectd: Handed peer, entering loop
2023-08-17T16:08:52.981Z DEBUG lightningd: Plugin chanbackup returned from peer_connected hook call
2023-08-17T16:08:52.981Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-chan#1: Peer has reconnected, state CLOSINGD_SIGEXCHANGE: connecting subd
2023-08-17T16:08:52.989Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-chan#1: Already have funding locked in (and ready to announce)
2023-08-17T16:08:52.994Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-chan#1: attempting update blockheight 06bd7e70ef9be084f9d29f6169cc5141f629c1ecdbb9a206e878f9ed24506be9
2023-08-17T16:08:52.994Z DEBUG hsmd: Client: Received message 3 from client
2023-08-17T16:08:52.994Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-connectd: peer_out WIRE_GOSSIP_TIMESTAMP_FILTER
2023-08-17T16:08:52.994Z DEBUG hsmd: new_client: 1
2023-08-17T16:08:52.995Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-hsmd: Got WIRE_HSMD_GET_PER_COMMITMENT_POINT
2023-08-17T16:08:52.995Z DEBUG hsmd: Client: Received message 18 from client
2023-08-17T16:08:52.996Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-hsmd: Got WIRE_HSMD_GET_PER_COMMITMENT_POINT
2023-08-17T16:08:52.996Z DEBUG hsmd: Client: Received message 18 from client
2023-08-17T16:08:56.621Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-hsmd: Got WIRE_HSMD_GET_PER_COMMITMENT_POINT
2023-08-17T16:08:56.621Z DEBUG hsmd: Client: Received message 18 from client
2023-08-17T16:08:56.629Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: pid 15622, msgfd 61
2023-08-17T16:08:56.630Z DEBUG hsmd: new_client: 1
2023-08-17T16:08:56.630Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: deriving max fee from rate 3750 -> 2070sat
2023-08-17T16:08:56.630Z UNUSUAL 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Our ideal fee is 889sat (1612 sats/perkw), but our minimum is 966sat: using that
2023-08-17T16:08:56.631Z DEBUG 02918e78d1538cdcd9d2fc292009fdc05d6d5d66d7706e7074dfa00e7f43321dce-hsmd: Got WIRE_HSMD_CUPDATE_SIG_REQ
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Expected closing weight = 552, fee 966sat (min 966sat, max 2070sat)
2023-08-17T16:08:56.631Z DEBUG hsmd: Client: Received message 3 from client
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: out = 124562sat/437sat
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: dustlimit = 546sat
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: fee = 966sat
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: fee negotiation step = 50%
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: billboard perm: Negotiating closing fee between 966sat and 2070sat satoshi (ideal 966sat) using step 50%
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Making close tx at = 124562sat/437sat fee 966sat
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-hsmd: Got WIRE_HSMD_SIGN_MUTUAL_CLOSE_TX
2023-08-17T16:08:56.631Z DEBUG hsmd: Client: Received message 21 from client
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: sending fee offer 966sat
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: peer_out WIRE_CLOSING_SIGNED
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: billboard: Waiting for their initial closing fee offer: ours was 966sat
2023-08-17T16:08:56.631Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: peer_in WIRE_SHUTDOWN
2023-08-17T16:08:57.022Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: peer_in WIRE_CLOSING_SIGNED
2023-08-17T16:08:57.022Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Making close tx at = 124562sat/437sat fee 1262sat
2023-08-17T16:08:57.030Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: Making close tx at = 124562sat/0sat fee 1262sat
2023-08-17T16:08:57.030Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: peer_out WIRE_WARNING
2023-08-17T16:08:57.030Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-closingd-chan#1: billboard perm: Bad closing_signed signature for 020000000106bd7e70ef9be084f9d29f6169cc5141f629c1ecdbb9a206e878f9ed24506be80100000000ffffffff01a4e1010000000000160014edb6b887ffa402cfce15e92977dcb5b77828bab500000000 (and trimmed version 020000000106bd7e70ef9be084f9d29f6169cc5141f629c1ecdbb9a206e878f9ed24506be80100000000ffffffff01a4e1010000000000160014edb6b887ffa402cfce15e92977dcb5b77828bab500000000)
2023-08-17T16:08:57.030Z DEBUG connectd: drain_peer
2023-08-17T16:08:57.031Z DEBUG connectd: drain_peer draining subd!
2023-08-17T16:08:57.031Z INFO 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-chan#1: Peer transient failure in CLOSINGD_SIGEXCHANGE: closingd WARNING: Bad closing_signed signature for 020000000106bd7e70ef9be084f9d29f6169cc5141f629c1ecdbb9a206e878f9ed24506be80100000000ffffffff01a4e1010000000000160014edb6b887ffa402cfce15e92977dcb5b77828bab500000000 (and trimmed version 020000000106bd7e70ef9be084f9d29f6169cc5141f629c1ecdbb9a206e878f9ed24506be80100000000ffffffff01a4e1010000000000160014edb6b887ffa402cfce15e92977dcb5b77828bab500000000)
2023-08-17T16:08:57.031Z DEBUG 023d70f2f76d283c6c4e58109ee3a2816eb9d8feb40b23d62469060a2b2867b77f-lightningd: peer_disconnect_done
Issue and Steps to Reproduce
This is on 08/14's master branch:
v23.08rc2-12-g5531c9d-modded
.I've been playing with Monday's CLN master, and am repeatedly hitting these
Bad closing_signed signature
when attempting a mutual close with LND nodes. Here below are some initial details.CLI:
LOG FILE:
getinfo
outputlistpeers
output