ElementsProject / lightning

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

force closes with invalid commitment error #6765

Open daywalker90 opened 1 year ago

daywalker90 commented 1 year ago

I got probably 4-6 of these in the last couple months:

channeld: received ERROR error channel 637d652ee2d194a97590017be8353631f715fd6b90262a4ba29a347e527b6c47: invalid commitment

some logs filtered by peer id:

Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: Adding their HTLC 48327
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: HTLC in 48327 RCVD_ADD_COMMIT->SENT_ADD_REVOCATION
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: ... , awaiting 1121
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Got it!
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: peer_out WIRE_REVOKE_AND_ACK
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Can't send commit: waiting for revoke_and_ack
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: peer_in WIRE_REVOKE_AND_ACK
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_VALIDATE_REVOCATION
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Received revoke_and_ack
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc 53810: SENT_ADD_COMMIT->RCVD_ADD_REVOCATION
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_SIGN_PENALTY_TO_US
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: rcvd_revoke_and_ack: HTLC LOCAL 53810 = RCVD_ADD_REVOCATION/SENT_ADD_REVOCATION
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Commits outstanding after recv revoke_and_ack
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: HTLC 53810[LOCAL] => RCVD_ADD_REVOCATION
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Sending master 1022
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: got revoke 200573: 1 changed
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: HTLC out 53810 SENT_ADD_COMMIT->RCVD_ADD_REVOCATION
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: ... , awaiting 1122
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Got it!
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: revoke_and_ack REMOTE: remote_per_commit = 02a004f132e264344bc6e38770b23982b0971b25c238e2f7ffed18837e273a0d6f, old_remote_per_commit = 03111244a7d159ba27d8cfa5f1a7fbc1130e54025834edd605c94935bf3623148e
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Trying commit
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_SIGN_REMOTE_COMMITMENT_TX
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc 53812: SENT_ADD_HTLC->SENT_ADD_COMMIT
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc added REMOTE: local 9522819576 remote 177003292
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_SIGN_REMOTE_HTLC_TX
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: -> local 9422762470 remote 177003292
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: sending_commit: HTLC LOCAL 53812 = SENT_ADD_COMMIT/RCVD_ADD_COMMIT
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_SIGN_REMOTE_HTLC_TX
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc 53811: SENT_ADD_HTLC->SENT_ADD_COMMIT
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc added REMOTE: local 9422762470 remote 177003292
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_SIGN_REMOTE_HTLC_TX
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: -> local 9322691255 remote 177003292
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: sending_commit: HTLC LOCAL 53811 = SENT_ADD_COMMIT/RCVD_ADD_COMMIT
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_SIGN_REMOTE_HTLC_TX
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc 48327: SENT_ADD_REVOCATION->SENT_ADD_ACK_COMMIT
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc added REMOTE: local 9322691255 remote 177003292
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_SIGN_REMOTE_HTLC_TX
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: -> local 9322691255 remote 105958387
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: sending_commit: HTLC REMOTE 48327 = SENT_ADD_ACK_COMMIT/RCVD_ADD_ACK_COMMIT
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_SIGN_REMOTE_HTLC_TX
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Creating commit_sig signature 200575 304402201f39872c23b2c8d4449746aa5b3774926a8581bb503736c0be0550b426295ac1022075ec50f2b38e9ad3f89ff2274fcc3d8bad237347520943316c1fe9e9c4bea54701 for tx 0200000001637d652ee2d194a97590017be8353631f715fd6b90262a4ba29a347e527b6c4502000000006f204e80088415010000000000220020ee7ea735ae4b2ad51c244110b6b4d2988088af5f3eb6ce3a10de03b17fdf1b0a4c81010000000000220020a028ce011d49688fb38a19db23e9a03ee6d58625bb52df35d94cac677bb12f4ad8860100000000002200205485c6d3a461d0d1fa8a08dad48c1b1d9a9b3aa51b51c0b3a65090e982e62c96d9860100000000002200209f7b910df5b5e5915b4ee1bc8bfb714877f8ea0f64257c8ef1d6fef3eccd9d72d986010000000000220020df09a094d539a092a44a464885b7520f4d91974a4a3582c23249b1eeda86ac9edf8601000000000022002004962f4dc1a4eb4d767759e9e9d8de32970e323a716aff30967189503b37dbb0e7860100000000002200203324d400019b507d6365c5544e5d8817b612429d395a79ceb579bea0d0b73e45c3408e0000000000160014f11152d98a3397f7ada0a00a34788b0a382e3dc6f570c920 wscript 52210201a6f7a369576140b16a2eab0211c929204c37096252b84b86352c5a3ed23b4721026e4a9ea9fbb1ded7ab5c1d5d614ab4208784437eb7d8f1aec22ecaf02329c6ed52ae key 0201a6f7a369576140b16a2eab0211c929204c37096252b84b86352c5a3ed23b47
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Creating HTLC signature 304402207f11b9ae8d161949e5f96d1c8c2cb33497410e44b29070e482d0514b6ccc4623022062c1f5ec0145ab3471a054b24fc948ee9f1edb4992028cc282b345e3686c162c01 for tx 0200000001d29775c56d388bf488e1116cee421cf65badb30fa4dd48d46728ad2f79956ab200000000000000000001b80a010000000000220020a028ce011d49688fb38a19db23e9a03ee6d58625bb52df35d94cac677bb12f4aa6640c00 wscript 76a914e75c384bc56150d60a8cd79076477da9da02286d8763ac6721027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c37c820120876475527c2103ed19fc574831b782e5e50daf3d78494042bb697b3bb514bae3bc4b0ebb55ab2052ae67a91427d3c6319afda30514d77206c3b5699ba2e229aa88ac6868 key 027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c3
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Creating HTLC signature 304402204982ab7687815e5bf464400f41b848c784578c9de3db82cb1e5cbe9921d3751402203e56971e66996a65788a981c28c0e3a8cafb035e8076478ece7125d537f1e40f01 for tx 0200000001d29775c56d388bf488e1116cee421cf65badb30fa4dd48d46728ad2f79956ab202000000000000000001657b010000000000220020a028ce011d49688fb38a19db23e9a03ee6d58625bb52df35d94cac677bb12f4a00000000 wscript 76a914e75c384bc56150d60a8cd79076477da9da02286d8763ac6721027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c37c8201208763a914239f73d757928a9cf480ef24c79d022f36b2cb5488527c2103ed19fc574831b782e5e50daf3d78494042bb697b3bb514bae3bc4b0ebb55ab2052ae67750387650cb175ac6868 key 027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c3
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Creating HTLC signature 3044022047b0d626615daafda064dd42cc02e4d8def17b40c0e8af659e07b41da04412070220375f54f157113e3cf1391ea8bf3bf5efdc67caa62c497338e4f3ea0024a1f9a701 for tx 0200000001d29775c56d388bf488e1116cee421cf65badb30fa4dd48d46728ad2f79956ab203000000000000000001667b010000000000220020a028ce011d49688fb38a19db23e9a03ee6d58625bb52df35d94cac677bb12f4a00000000 wscript 76a914e75c384bc56150d60a8cd79076477da9da02286d8763ac6721027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c37c8201208763a914879974c1d9ab174ce04f14545a66d2952edc79f088527c2103ed19fc574831b782e5e50daf3d78494042bb697b3bb514bae3bc4b0ebb55ab2052ae67750391650cb175ac6868 key 027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c3
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Creating HTLC signature 30440220611a131da5b3907e56cc3f69348c2e0382e5e8a014928d6ffbc1468e83efe0b10220100c5f07134622ed602807edb5d4e456499384c96f6ed7ad658ac6887a485a3a01 for tx 0200000001d29775c56d388bf488e1116cee421cf65badb30fa4dd48d46728ad2f79956ab204000000000000000001667b010000000000220020a028ce011d49688fb38a19db23e9a03ee6d58625bb52df35d94cac677bb12f4a00000000 wscript 76a914e75c384bc56150d60a8cd79076477da9da02286d8763ac6721027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c37c8201208763a9144ad27535f300f2d9964f489bec372773d3b060b688527c2103ed19fc574831b782e5e50daf3d78494042bb697b3bb514bae3bc4b0ebb55ab2052ae677503af650cb175ac6868 key 027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c3
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Creating HTLC signature 304402203222e38bad3a1dd6944fbcdd2ad5855f2628e442ae9d64454eec7f2c1748cae00220789f3e7f35fbe4ddd5b4669b69e05152d48beae8cf9703d631c96284588f5aeb01 for tx 0200000001d29775c56d388bf488e1116cee421cf65badb30fa4dd48d46728ad2f79956ab2050000000000000000016c7b010000000000220020a028ce011d49688fb38a19db23e9a03ee6d58625bb52df35d94cac677bb12f4a00000000 wscript 76a914e75c384bc56150d60a8cd79076477da9da02286d8763ac6721027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c37c8201208763a9143a86dbab6287df5373a89524a67eacf7529ad27d88527c2103ed19fc574831b782e5e50daf3d78494042bb697b3bb514bae3bc4b0ebb55ab2052ae6775034f660cb175ac6868 key 027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c3
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Creating HTLC signature 304402201b3d311c66af83b633cd07d9b32ddc4d769ef9c13e3c605708cfebdd588a80770220206463c07f26953020a33d0c5b21c0346fcb6537b32e5028f9277b757f847b1c01 for tx 0200000001d29775c56d388bf488e1116cee421cf65badb30fa4dd48d46728ad2f79956ab206000000000000000001747b010000000000220020a028ce011d49688fb38a19db23e9a03ee6d58625bb52df35d94cac677bb12f4a00000000 wscript 76a914e75c384bc56150d60a8cd79076477da9da02286d8763ac6721027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c37c8201208763a914cc11c571acea884ceea50a28f02405e31786479d88527c2103ed19fc574831b782e5e50daf3d78494042bb697b3bb514bae3bc4b0ebb55ab2052ae67750307660cb175ac6868 key 027ae962caf3aa318bb09eb5538b92c7ed97cc782a7b31b6d59cc6e6aa159ac6c3
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Telling master we're about to commit...
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Sending master 1020
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: HTLC out 53812 SENT_ADD_HTLC->SENT_ADD_COMMIT
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: HTLC out 53811 SENT_ADD_HTLC->SENT_ADD_COMMIT
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: HTLC in 48327 SENT_ADD_REVOCATION->SENT_ADD_ACK_COMMIT
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: ... , awaiting 1120
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Got it!
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Sending commit_sig with 6 htlc sigs
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: peer_out WIRE_COMMITMENT_SIGNED
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Can't send commit: waiting for revoke_and_ack
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: peer_in WIRE_COMMITMENT_SIGNED
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: handle_peer_commit_sig(splice: 0, remote_splice: 0)
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Received commit
Oct 11 18:25:48  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc 53810: RCVD_ADD_REVOCATION->RCVD_ADD_ACK_COMMIT
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc added LOCAL: local 9622876382 remote 105958387
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: -> local 9522819576 remote 105958387
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: rcvd_commit: HTLC LOCAL 53810 = RCVD_ADD_ACK_COMMIT/SENT_ADD_ACK_COMMIT
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Feerates are 4170/4170
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-hsmd: Got WIRE_HSMD_VALIDATE_COMMITMENT_TX
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: We need 105888sat at feerate 4170 for 4 untrimmed htlcs: we have 105958387msat/105958387msat
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Derived key 03afc8f394c47d3fc5b8106872d460de84bd048a80a346a7ca3c2efd58e81e874a from basepoint 0261dc717e15499a25c16c1bf721f566963e1886ed6886cea6805af2a5bd78a198, point 03e2fd75a6c7ddffc355b9f50f776b5a98aab0ff66950b93e252c75a447f59b5a2
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Received commit_sig with 4 htlc sigs
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Sending revoke_and_ack
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: htlc 53810: RCVD_ADD_ACK_COMMIT->SENT_ADD_ACK_REVOCATION
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: sending_revoke_and_ack: HTLC LOCAL 53810 = SENT_ADD_ACK_REVOCATION/RCVD_ADD_ACK_REVOCATION
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Sending master 1021
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: got commitsig 201643: feerate 4170, blockheight: 0, 0 added, 0 fulfilled, 0 failed, 1 changed. 0 splice commitments.
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: HTLC out 53810 RCVD_ADD_REVOCATION->RCVD_ADD_ACK_COMMIT
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: HTLC out 53810 RCVD_ADD_ACK_COMMIT->SENT_ADD_ACK_REVOCATION
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: ... , awaiting 1121
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: Got it!
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: peer_out WIRE_REVOKE_AND_ACK
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: peer_in WIRE_ERROR
Oct 11 18:25:49  lightningd: DEBUG   03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-channeld-chan#1122: billboard perm: Received error channel 637d652ee2d194a97590017be8353631f715fd6b90262a4ba29a347e527b6c47: invalid commitment
Oct 11 18:25:49  lightningd: UNUSUAL 03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: Peer permanent failure in CHANNELD_NORMAL: channeld: received ERROR error channel 637d652ee2d194a97590017be8353631f715fd6b90262a4ba29a347e527b6c47: invalid commitment
Oct 11 18:25:49  lightningd: INFO    03c792f6a89fefd3f1b49b3d2ce23143b6f18d36b2ccb039fdb7dbfeb29159bb70-chan#1122: State changed from CHANNELD_NORMAL to AWAITING_UNILATERAL

These were always force closes with 5+ pending htlcs aswell. CLN 23.08.1, postgres 15, bitcoind 25

michael1011 commented 1 year ago

We are also seeing force closes like this. Interestingly the receivable_msat or spendable_msat is always 0