ElementsProject / lightning

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

splice can create channel_announcement with wrong scid #6551

Closed rustyrussell closed 1 year ago

rustyrussell commented 1 year ago

This happened under CI. gossipd complained that the channel_announcement we fed it bad a bad signature, and indeed, I checked l2 signed it with the old scid 103x1x0 and l1 signed it with 109x1x0. l1 is complaining, so it obviously handed the old signature to gossipd.

I can see l1 receiving 3 ANNOUNCEMENT_SIGNATURES from l2 after the splice: is l2 sending the old txid somehow?

This may be a weird corner case caused by all 6 blocks coming in at once: we go from mined to announceable immediately.

lightningd-1 2023-08-12T01:00:04.057Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: splice_update start with, current psbt version: 2, desired: 2.
lightningd-1 2023-08-12T01:00:04.108Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_out WIRE_TX_COMPLETE
lightningd-2 2023-08-12T01:00:04.117Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_in WIRE_TX_COMPLETE
lightningd-1 2023-08-12T01:00:04.159Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Splice adding inflight: cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAasj0dLSUebNd1RBr7ORo4DgjBxuTpKw4ydRxt3oMLznAAAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgPP2aijDXa1s4QLQjh6uC+v1SiStSGgQaXFoo8vf5BxICIHEbiKQeOt+5LshqjpK1OJwlccZNqbfHI98BmE+Hc/HUASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M9mAAAAAQErQEIPAAAAAAAiACBbjNO5FM9nzdj6YnPJMDU902R2c0+9liECwt9TuQiAzQEOIIcB2gn4hEfkutGsP6483pqFIKdcOnNeS27ez02teXE+AQ8EAAAAAAEQBAAAAAAM/AlsaWdodG5pbmcBCBlHcNx112CMAAEA9gIAAAAAAQGrI9HS0lHmzXdUQa+zkaOA4Iwcbk6SsOMnUcbd6DC85wAAAAAA/f///wJAQg8AAAAAACIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNAS8PAAAAAAAiUSBj/+5Op9UebK35CG4oaiUnkiqqJbjFOuvzL6MqCmJ/WgJHMEQCIDz9moow12tbOEC0I4ergvr9UokrUhoEGlxaKPL3+QcSAiBxG4ikHjrfuS7Iao6StTicJXHGTam3xyPfAZhPh3Px1AEhA9dFRFyTYmZfIuDZbp52byc/MmDeo5yKdr+gXdJoTdzPZgAAAAEBKwEvDwAAAAAAIlEgY//uTqfVHmyt+QhuKGolJ5IqqiW4xTrr8y+jKgpif1oBDiCHAdoJ+IRH5LrRrD+uPN6ahSCnXDpzXktu3s9NrXlxPgEPBAEAAAABEAT9////DPwJbGlnaHRuaW5nAQhOSYfjyW6U8AABAwjgyBAAAAAAAAEEIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0M/AlsaWdodG5pbmcBCCwY8B0Z9wxiAAEDCE58DQAAAAAAAQQiUSB4NjVf3IqC3EywCncsVVQVHQY4Sk3WXo0/aKwIVmuEvgz8CWxpZ2h0bmluZwEIy50BRBjQA9wA
lightningd-1 2023-08-12T01:00:04.178Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Sending master 7216
lightningd-1 2023-08-12T01:00:04.187Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: lightningd adding inflight with txid 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644
lightningd-1 2023-08-12T01:00:04.211Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: ... , awaiting 7217
lightningd-1 2023-08-12T01:00:04.217Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Got it!
lightningd-2 2023-08-12T01:00:04.323Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Splice accepter adding inflight: cHNidP8BAgQCAAAAAQMEbAAAAAEEAQIBBQECAQYBAwH7BAIAAAAAAQD2AgAAAAABAasj0dLSUebNd1RBr7ORo4DgjBxuTpKw4ydRxt3oMLznAAAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgPP2aijDXa1s4QLQjh6uC+v1SiStSGgQaXFoo8vf5BxICIHEbiKQeOt+5LshqjpK1OJwlccZNqbfHI98BmE+Hc/HUASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M9mAAAAAQ4ghwHaCfiER+S60aw/rjzemoUgp1w6c15Lbt7PTa15cT4BDwQAAAAAARAEAAAAAAz8CWxpZ2h0bmluZwEIGUdw3HXXYIwAAQD2AgAAAAABAasj0dLSUebNd1RBr7ORo4DgjBxuTpKw4ydRxt3oMLznAAAAAAD9////AkBCDwAAAAAAIgAgW4zTuRTPZ83Y+mJzyTA1PdNkdnNPvZYhAsLfU7kIgM0BLw8AAAAAACJRIGP/7k6n1R5srfkIbihqJSeSKqoluMU66/MvoyoKYn9aAkcwRAIgPP2aijDXa1s4QLQjh6uC+v1SiStSGgQaXFoo8vf5BxICIHEbiKQeOt+5LshqjpK1OJwlccZNqbfHI98BmE+Hc/HUASED10VEXJNiZl8i4NlunnZvJz8yYN6jnIp2v6Bd0mhN3M9mAAAAAQ4ghwHaCfiER+S60aw/rjzemoUgp1w6c15Lbt7PTa15cT4BDwQBAAAAARAE/f///wz8CWxpZ2h0bmluZwEITkmH48lulPAAAQMI4MgQAAAAAAABBCIAIFuM07kUz2fN2Ppic8kwNT3TZHZzT72WIQLC31O5CIDNDPwJbGlnaHRuaW5nAQgsGPAdGfcMYgABAwhOfA0AAAAAAAEEIlEgeDY1X9yKgtxMsAp3LFVUFR0GOEpN1l6NP2isCFZrhL4M/AlsaWdodG5pbmcBCMudAUQY0APcAA==
lightningd-2 2023-08-12T01:00:04.448Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Sending master 7216
lightningd-2 2023-08-12T01:00:04.467Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: lightningd adding inflight with txid 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644
lightningd-2 2023-08-12T01:00:04.497Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: ... , awaiting 7217
lightningd-2 2023-08-12T01:00:04.499Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Got it!
lightningd-2 2023-08-12T01:00:04.504Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Splice accepter: we commit first
lightningd-2 2023-08-12T01:00:04.517Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: send_commit_part(splice: 0, remote_splice: 0)
lightningd-2 2023-08-12T01:00:04.899Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-hsmd: Got WIRE_HSMD_SIGN_REMOTE_COMMITMENT_TX
lightningd-2 2023-08-12T01:00:04.908Z DEBUG   hsmd: Client: Received message 19 from client
lightningd-2 2023-08-12T01:00:04.914Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Creating commit_sig signature 1 30440220443d599ffce7eff022ab2bb85dfe45a8c486e5fd931a098ed6be1dd0403b052402201b8ca030c52b5fc7db1d3457073551d05f9a7b0fc0eca8d51029537d222a5ec501 for tx 02000000018701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e00000000009db0e280010a2d0f000000000022002091fb9e7843a03e66b4b1173482a0eb394f03a35aae4c28e8b4b1f575696bd7939b3ed620 wscript 522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae key 02e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e57
lightningd-2 2023-08-12T01:00:04.930Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Telling master we're about to commit...
lightningd-2 2023-08-12T01:00:04.942Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Sending master 1020
lightningd-2 2023-08-12T01:00:05.011Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: ... , awaiting 1120
lightningd-2 2023-08-12T01:00:05.017Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Got it!
lightningd-2 2023-08-12T01:00:05.018Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Sending commit_sig with 0 htlc sigs
lightningd-2 2023-08-12T01:00:05.026Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: send_commit_part(splice: 0, remote_splice: 100000)
lightningd-2 2023-08-12T01:00:05.076Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-hsmd: Got WIRE_HSMD_SIGN_REMOTE_COMMITMENT_TX
lightningd-2 2023-08-12T01:00:05.078Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Creating commit_sig signature 1 30440220480eb4bcde900bb37c2d3c1d48089c481e449bd1cf83785dd494c66bcb558e3f02202f2f1f374b918bfb4be74b30c67e3fcedf09bd38a980fcbfb67118b2c6bcdfcf01 for tx 020000000144a6154dd3c607b23762e0553725752642548180eeb4b22876ba4c689de1094100000000009db0e28001aab310000000000022002091fb9e7843a03e66b4b1173482a0eb394f03a35aae4c28e8b4b1f575696bd7939b3ed620 wscript 522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae key 02e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e57
lightningd-2 2023-08-12T01:00:05.082Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_out WIRE_COMMITMENT_SIGNED
lightningd-2 2023-08-12T01:00:05.083Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_out WIRE_COMMITMENT_SIGNED
lightningd-2 2023-08-12T01:00:05.086Z DEBUG   hsmd: Client: Received message 19 from client
lightningd-1 2023-08-12T01:00:05.306Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_COMMITMENT_SIGNED
lightningd-1 2023-08-12T01:00:05.307Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: handle_peer_commit_sig(splice: 0, remote_splice: 0)
lightningd-1 2023-08-12T01:00:05.310Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Received commit
lightningd-1 2023-08-12T01:00:05.693Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Derived key 039b7fec1eae7d1c3ebe2c75bad7a0446e54a58eb17ea7fc8b79b663760df15461 from basepoint 03e0a7bb422b254f54bc954be05bd6823a7b7a4b996ff8d3079ca211590fb5df39, point 03ea98cd6ba5a6de1bb2b3cbe05740bfe56b3482143704b27db6565638dfe58a64
lightningd-1 2023-08-12T01:00:05.792Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Received commit_sig with 0 htlc sigs
lightningd-1 2023-08-12T01:00:05.874Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-hsmd: Got WIRE_HSMD_VALIDATE_COMMITMENT_TX
lightningd-1 2023-08-12T01:00:05.882Z DEBUG   hsmd: Client: Received message 35 from client
lightningd-1 2023-08-12T01:00:05.915Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_COMMITMENT_SIGNED
lightningd-1 2023-08-12T01:00:05.916Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: handle_peer_commit_sig(splice: 100000, remote_splice: 0)
lightningd-1 2023-08-12T01:00:05.962Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Derived key 039b7fec1eae7d1c3ebe2c75bad7a0446e54a58eb17ea7fc8b79b663760df15461 from basepoint 03e0a7bb422b254f54bc954be05bd6823a7b7a4b996ff8d3079ca211590fb5df39, point 03ea98cd6ba5a6de1bb2b3cbe05740bfe56b3482143704b27db6565638dfe58a64
lightningd-1 2023-08-12T01:00:05.969Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Received commit_sig with 0 htlc sigs
lightningd-1 2023-08-12T01:00:06.005Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-hsmd: Got WIRE_HSMD_VALIDATE_COMMITMENT_TX
lightningd-1 2023-08-12T01:00:06.014Z DEBUG   hsmd: Client: Received message 35 from client
lightningd-1 2023-08-12T01:00:06.014Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Sending revoke_and_ack
lightningd-1 2023-08-12T01:00:06.046Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Sending master 1021
lightningd-1 2023-08-12T01:00:06.077Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: got commitsig 1: feerate 7500, blockheight: 0, 0 added, 0 fulfilled, 0 failed, 0 changed. 1 splice commitments.
lightningd-1 2023-08-12T01:00:06.138Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: ... , awaiting 1121
lightningd-1 2023-08-12T01:00:06.139Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Got it!
lightningd-1 2023-08-12T01:00:06.142Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_out WIRE_REVOKE_AND_ACK
lightningd-1 2023-08-12T01:00:06.142Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Splice initiator: we commit second
lightningd-1 2023-08-12T01:00:06.150Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: send_commit_part(splice: 0, remote_splice: 0)
lightningd-1 2023-08-12T01:00:06.218Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-hsmd: Got WIRE_HSMD_SIGN_REMOTE_COMMITMENT_TX
lightningd-1 2023-08-12T01:00:06.219Z DEBUG   hsmd: Client: Received message 19 from client
lightningd-1 2023-08-12T01:00:06.222Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Creating commit_sig signature 1 3044022023a2eecd14f847607f94153aab93bd3787ab0df4643dbf21e352f0abfcb633b802204ac322e38c03011cf365325cc6eb4fedff3a4eae6f27c4f7d64b866d09507e1001 for tx 02000000018701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e00000000009db0e280010a2d0f0000000000160014e89954fac8f7a2dce51e095d7beb5271c3f7da569b3ed620 wscript 522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae key 02324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b
lightningd-1 2023-08-12T01:00:06.225Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Telling master we're about to commit...
lightningd-1 2023-08-12T01:00:06.238Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Sending master 1020
lightningd-1 2023-08-12T01:00:06.341Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: ... , awaiting 1120
lightningd-1 2023-08-12T01:00:06.342Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Got it!
lightningd-1 2023-08-12T01:00:06.343Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Sending commit_sig with 0 htlc sigs
lightningd-1 2023-08-12T01:00:06.347Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: send_commit_part(splice: 100000, remote_splice: 0)
lightningd-2 2023-08-12T01:00:06.359Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_in WIRE_REVOKE_AND_ACK
lightningd-2 2023-08-12T01:00:06.365Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-hsmd: Got WIRE_HSMD_VALIDATE_REVOCATION
lightningd-2 2023-08-12T01:00:06.366Z DEBUG   hsmd: Client: Received message 36 from client
lightningd-2 2023-08-12T01:00:06.383Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Received revoke_and_ack
lightningd-2 2023-08-12T01:00:06.397Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: No commits outstanding after recv revoke_and_ack
lightningd-1 2023-08-12T01:00:06.418Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-hsmd: Got WIRE_HSMD_SIGN_REMOTE_COMMITMENT_TX
lightningd-1 2023-08-12T01:00:06.423Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Creating commit_sig signature 1 3044022014c6549a523ad798d007ccc76e43deec45d0797eb8adf3ed48f65e2a893747500220160af45743d3dca79775aabf03d12a6c799c73f7175fb009c514944dec1a879701 for tx 020000000144a6154dd3c607b23762e0553725752642548180eeb4b22876ba4c689de1094100000000009db0e28001aab3100000000000160014e89954fac8f7a2dce51e095d7beb5271c3f7da569b3ed620 wscript 522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae key 02324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b
lightningd-1 2023-08-12T01:00:06.424Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_out WIRE_COMMITMENT_SIGNED
lightningd-1 2023-08-12T01:00:06.426Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_out WIRE_COMMITMENT_SIGNED
lightningd-1 2023-08-12T01:00:06.429Z DEBUG   hsmd: Client: Received message 19 from client
lightningd-2 2023-08-12T01:00:06.611Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-hsmd: Got WIRE_HSMD_SIGN_PENALTY_TO_US
lightningd-2 2023-08-12T01:00:06.616Z DEBUG   hsmd: Client: Received message 14 from client
lightningd-2 2023-08-12T01:00:06.668Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Sending master 1022
lightningd-2 2023-08-12T01:00:06.712Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: got revoke 0: 0 changed
lightningd-2 2023-08-12T01:00:06.798Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: ... , awaiting 1122
lightningd-2 2023-08-12T01:00:06.802Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Got it!
lightningd-2 2023-08-12T01:00:06.803Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: revoke_and_ack REMOTE: remote_per_commit = 02103d97a30b8d3e141cf0f3d4ba65483be20fb2970be42dfc0481ee4e1fa550d9, old_remote_per_commit = 03ea98cd6ba5a6de1bb2b3cbe05740bfe56b3482143704b27db6565638dfe58a64
lightningd-2 2023-08-12T01:00:06.804Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_in WIRE_COMMITMENT_SIGNED
lightningd-2 2023-08-12T01:00:06.805Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: handle_peer_commit_sig(splice: 0, remote_splice: 0)
lightningd-2 2023-08-12T01:00:06.818Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Received commit
lightningd-2 2023-08-12T01:00:06.818Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Feerates are 7500/7500
lightningd-2 2023-08-12T01:00:06.827Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: We need 15430sat at feerate 7500 for 0 untrimmed htlcs: we have 1000000000msat/1000000000msat
lightningd-2 2023-08-12T01:00:06.890Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Derived key 030b652621b88baa0b5b221321dd297e3abee663e127b658ee26421f231c8e0be7 from basepoint 02346928c7642a1098a328e2787254c060f03a6b2c06af78a128868f913945d447, point 020b2bb4220acc4114c47375e9b71e072f7cac127e1bb453d49595699958cfa9e4
lightningd-2 2023-08-12T01:00:06.979Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Received commit_sig with 0 htlc sigs
lightningd-2 2023-08-12T01:00:07.048Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-hsmd: Got WIRE_HSMD_VALIDATE_COMMITMENT_TX
lightningd-2 2023-08-12T01:00:07.063Z DEBUG   hsmd: Client: Received message 35 from client
lightningd-2 2023-08-12T01:00:07.090Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_in WIRE_COMMITMENT_SIGNED
lightningd-2 2023-08-12T01:00:07.091Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: handle_peer_commit_sig(splice: 0, remote_splice: 100000)
lightningd-2 2023-08-12T01:00:07.093Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Feerates are 7500/7500
lightningd-2 2023-08-12T01:00:07.094Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: We need 15430sat at feerate 7500 for 0 untrimmed htlcs: we have 1000000000msat/1000000000msat
lightningd-2 2023-08-12T01:00:07.125Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Derived key 030b652621b88baa0b5b221321dd297e3abee663e127b658ee26421f231c8e0be7 from basepoint 02346928c7642a1098a328e2787254c060f03a6b2c06af78a128868f913945d447, point 020b2bb4220acc4114c47375e9b71e072f7cac127e1bb453d49595699958cfa9e4
lightningd-2 2023-08-12T01:00:07.138Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Received commit_sig with 0 htlc sigs
lightningd-2 2023-08-12T01:00:07.171Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-hsmd: Got WIRE_HSMD_VALIDATE_COMMITMENT_TX
lightningd-2 2023-08-12T01:00:07.178Z DEBUG   hsmd: Client: Received message 35 from client
lightningd-2 2023-08-12T01:00:07.179Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Sending revoke_and_ack
lightningd-2 2023-08-12T01:00:07.199Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Sending master 1021
lightningd-2 2023-08-12T01:00:07.231Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: got commitsig 1: feerate 7500, blockheight: 0, 0 added, 0 fulfilled, 0 failed, 0 changed. 1 splice commitments.
lightningd-2 2023-08-12T01:00:07.294Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: ... , awaiting 1121
lightningd-2 2023-08-12T01:00:07.303Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Got it!
lightningd-2 2023-08-12T01:00:07.304Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_out WIRE_REVOKE_AND_ACK
lightningd-1 2023-08-12T01:00:07.453Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_REVOKE_AND_ACK
lightningd-1 2023-08-12T01:00:07.459Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-hsmd: Got WIRE_HSMD_VALIDATE_REVOCATION
lightningd-1 2023-08-12T01:00:07.460Z DEBUG   hsmd: Client: Received message 36 from client
lightningd-2 2023-08-12T01:00:07.464Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-hsmd: Got WIRE_HSMD_SIGN_SPLICE_TX
lightningd-2 2023-08-12T01:00:07.464Z INFO    0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Splice signing tx: 02000000028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be6c000000
lightningd-2 2023-08-12T01:00:07.465Z DEBUG   hsmd: Client: Received message 29 from client
lightningd-2 2023-08-12T01:00:07.466Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Splice: we sign first
lightningd-1 2023-08-12T01:00:07.475Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Received revoke_and_ack
lightningd-1 2023-08-12T01:00:07.475Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: No commits outstanding after recv revoke_and_ack
lightningd-1 2023-08-12T01:00:07.492Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Sending master 1022
lightningd-1 2023-08-12T01:00:07.496Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: got revoke 0: 0 changed
lightningd-2 2023-08-12T01:00:07.507Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_out WIRE_TX_SIGNATURES
lightningd-1 2023-08-12T01:00:07.581Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: ... , awaiting 1122
lightningd-1 2023-08-12T01:00:07.586Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Got it!
lightningd-1 2023-08-12T01:00:07.587Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: revoke_and_ack LOCAL: remote_per_commit = 02d2a7828d7be845ad8e5d1cdce493d3932f509528c309b59e8414077d16c26462, old_remote_per_commit = 020b2bb4220acc4114c47375e9b71e072f7cac127e1bb453d49595699958cfa9e4
lightningd-1 2023-08-12T01:00:07.701Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: user_finalized peer->stfu_wait_single_msg: 0
lightningd-1 2023-08-12T01:00:07.723Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: send_channel_update 0
lightningd-1 2023-08-12T01:00:07.730Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Trying commit
lightningd-1 2023-08-12T01:00:07.731Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Can't send commit: nothing to send, feechange not wanted ({ SENT_ADD_ACK_REVOCATION:7500 }) blockheight not wanted ({ SENT_ADD_ACK_REVOCATION:0 })
lightningd-1 2023-08-12T01:00:08.106Z DEBUG   hsmd: Client: Received message 7 from client
lightningd-1 2023-08-12T01:00:08.113Z DEBUG   lightningd: splice_signed input PSBT version 2
lightningd-1 2023-08-12T01:00:08.201Z INFO    022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Splice signing tx: 02000000028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be6c000000
lightningd-1 2023-08-12T01:00:08.262Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-hsmd: Got WIRE_HSMD_SIGN_SPLICE_TX
lightningd-1 2023-08-12T01:00:08.270Z DEBUG   hsmd: Client: Received message 29 from client
lightningd-1 2023-08-12T01:00:08.273Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_TX_SIGNATURES
lightningd-1 2023-08-12T01:00:08.285Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Left STFU mode.
lightningd-2 2023-08-12T01:00:08.378Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_in WIRE_TX_SIGNATURES
lightningd-2 2023-08-12T01:00:08.379Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Left STFU mode.
lightningd-1 2023-08-12T01:00:08.403Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Splice: we sign second
lightningd-1 2023-08-12T01:00:08.404Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_out WIRE_TX_SIGNATURES
lightningd-1 2023-08-12T01:00:08.448Z INFO    022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: State changed from CHANNELD_NORMAL to CHANNELD_AWAITING_SPLICE
lightningd-1 2023-08-12T01:00:08.495Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Broadcasting splice tx 020000000001028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be04004730440220246178bb301d2980ce11b88e70755f68318c1a94433d606d3033c0144e052abc02205d372db4f273ed61e3e6e31e1c68cc1f34202b23f195e867f80fd080155050800147304402206fcbaea80697972e155f426c1b3b17615342b6b7507261a733813968bcdd0057022050c6c53c19d6fd1e9f8a981ac4c31bc13140f1ee57e48418a900cb4d294ca9f50147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae014041b1216c14f57999a14b604c562608f0fc7ce31865430713d6bf5c4c9ae5e8d1fb043d9b86d2b002858581f9fc6a8eb1c2a9d57c84764d90f4e6a36516d397d86c000000 for channel 8701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e.
lightningd-1 2023-08-12T01:00:08.497Z DEBUG   lightningd: sendrawtransaction: 020000000001028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be04004730440220246178bb301d2980ce11b88e70755f68318c1a94433d606d3033c0144e052abc02205d372db4f273ed61e3e6e31e1c68cc1f34202b23f195e867f80fd080155050800147304402206fcbaea80697972e155f426c1b3b17615342b6b7507261a733813968bcdd0057022050c6c53c19d6fd1e9f8a981ac4c31bc13140f1ee57e48418a900cb4d294ca9f50147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae014041b1216c14f57999a14b604c562608f0fc7ce31865430713d6bf5c4c9ae5e8d1fb043d9b86d2b002858581f9fc6a8eb1c2a9d57c84764d90f4e6a36516d397d86c000000
lightningd-1 2023-08-12T01:00:08.520Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: send_channel_update 0
lightningd-1 2023-08-12T01:00:08.536Z DEBUG   plugin-bcli: sendrawtx exit 0 (bitcoin-cli -regtest -datadir=/tmp/ltests-znuezklj/test_splice_1/lightning-1/ -rpcport=44963 -rpcuser=... -stdinrpcpass sendrawtransaction 020000000001028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be04004730440220246178bb301d2980ce11b88e70755f68318c1a94433d606d3033c0144e052abc02205d372db4f273ed61e3e6e31e1c68cc1f34202b23f195e867f80fd080155050800147304402206fcbaea80697972e155f426c1b3b17615342b6b7507261a733813968bcdd0057022050c6c53c19d6fd1e9f8a981ac4c31bc13140f1ee57e48418a900cb4d294ca9f50147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae014041b1216c14f57999a14b604c562608f0fc7ce31865430713d6bf5c4c9ae5e8d1fb043d9b86d2b002858581f9fc6a8eb1c2a9d57c84764d90f4e6a36516d397d86c000000) 
lightningd-2 2023-08-12T01:00:08.538Z INFO    0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: State changed from CHANNELD_NORMAL to CHANNELD_AWAITING_SPLICE
lightningd-2 2023-08-12T01:00:08.581Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: Broadcasting splice tx 020000000001028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be04004730440220246178bb301d2980ce11b88e70755f68318c1a94433d606d3033c0144e052abc02205d372db4f273ed61e3e6e31e1c68cc1f34202b23f195e867f80fd080155050800147304402206fcbaea80697972e155f426c1b3b17615342b6b7507261a733813968bcdd0057022050c6c53c19d6fd1e9f8a981ac4c31bc13140f1ee57e48418a900cb4d294ca9f50147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae014041b1216c14f57999a14b604c562608f0fc7ce31865430713d6bf5c4c9ae5e8d1fb043d9b86d2b002858581f9fc6a8eb1c2a9d57c84764d90f4e6a36516d397d86c000000 for channel 8701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e.
lightningd-2 2023-08-12T01:00:08.583Z DEBUG   lightningd: sendrawtransaction: 020000000001028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be04004730440220246178bb301d2980ce11b88e70755f68318c1a94433d606d3033c0144e052abc02205d372db4f273ed61e3e6e31e1c68cc1f34202b23f195e867f80fd080155050800147304402206fcbaea80697972e155f426c1b3b17615342b6b7507261a733813968bcdd0057022050c6c53c19d6fd1e9f8a981ac4c31bc13140f1ee57e48418a900cb4d294ca9f50147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae014041b1216c14f57999a14b604c562608f0fc7ce31865430713d6bf5c4c9ae5e8d1fb043d9b86d2b002858581f9fc6a8eb1c2a9d57c84764d90f4e6a36516d397d86c000000
lightningd-1 2023-08-12T01:00:08.600Z DEBUG   wallet: Owning output 1 883790sat (SEGWIT) txid 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644
lightningd-2 2023-08-12T01:00:08.609Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: send_channel_update 0
lightningd-2 2023-08-12T01:00:08.612Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Trying commit
lightningd-2 2023-08-12T01:00:08.612Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Can't send commit: nothing to send, feechange not wanted ({ RCVD_ADD_ACK_REVOCATION:7500 }) blockheight not wanted ({ RCVD_ADD_ACK_REVOCATION:0 })
lightningd-2 2023-08-12T01:00:08.613Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: send_channel_update 0
lightningd-2 2023-08-12T01:00:08.690Z DEBUG   plugin-bcli: sendrawtx exit 27 (bitcoin-cli -regtest -datadir=/tmp/ltests-znuezklj/test_splice_1/lightning-2/ -rpcport=52079 -rpcuser=... -stdinrpcpass sendrawtransaction 020000000001028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be04004730440220246178bb301d2980ce11b88e70755f68318c1a94433d606d3033c0144e052abc02205d372db4f273ed61e3e6e31e1c68cc1f34202b23f195e867f80fd080155050800147304402206fcbaea80697972e155f426c1b3b17615342b6b7507261a733813968bcdd0057022050c6c53c19d6fd1e9f8a981ac4c31bc13140f1ee57e48418a900cb4d294ca9f50147522102324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b2102e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5752ae014041b1216c14f57999a14b604c562608f0fc7ce31865430713d6bf5c4c9ae5e8d1fb043d9b86d2b002858581f9fc6a8eb1c2a9d57c84764d90f4e6a36516d397d86c000000) error code: -27\nerror message:\nTransaction already in block chain
lightningd-1 2023-08-12T01:00:08.772Z DEBUG   lightningd: Adding block 109: 40735692cde6255d8e7901a2ed42c2815731a7bbf72bfd9f302ece02b232e953
lightningd-1 2023-08-12T01:00:08.852Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Got UTXO spend for 3e7179ad4dcfde6e4b5e733a5ca720859ade3cae3facd1bae44784f809da0187:0: 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644
lightningd-1 2023-08-12T01:00:08.995Z DEBUG   wallet: Owning output 1 883790sat (SEGWIT) txid 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644 CONFIRMED
lightningd-1 2023-08-12T01:00:09.041Z DEBUG   plugin-bookkeeper: coin_move 2 (withdrawal) 0msat -995073000msat chain_mvt 1691802008
lightningd-1 2023-08-12T01:00:09.042Z DEBUG   gossipd: Deleting channel 103x1x0 due to the funding outpoint being spent
lightningd-1 2023-08-12T01:00:09.050Z DEBUG   plugin-bookkeeper: coin_move 2 (deposit) 883790000msat -0msat chain_mvt 1691802008
lightningd-1 2023-08-12T01:00:09.084Z DEBUG   lightningd: Adding block 110: 0f48579d9b6ea5e3df34167d7a9a79f8c3120f194131ecb82f30b81095395bcd
lightningd-1 2023-08-12T01:00:09.141Z DEBUG   lightningd: Adding block 111: 238c8310e7a21d56602afa92fa66cfe5a8918e01adc1b15180c1c0e13e70ca64
lightningd-1 2023-08-12T01:00:09.189Z DEBUG   lightningd: Adding block 112: 5d8b5328973ca5e2ed6757254b0ff322df08f6058390db7411642792575fc0af
lightningd-1 2023-08-12T01:00:09.225Z DEBUG   lightningd: Adding block 113: 0d43b134c62c6f08743eaa5ac54e1c4914fd1ef17a2822b5d0344bbd9ec01109
lightningd-1 2023-08-12T01:00:09.266Z DEBUG   lightningd: Adding block 114: 582db90b3e3fd0af02ea1dc2ee2e7171ccd679683abfa19f96e6fd53084b3ac4
lightningd-1 2023-08-12T01:00:09.302Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Got depth change 0->6 for 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644
lightningd-1 2023-08-12T01:00:09.304Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Funding tx 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644 depth 6 of 1
lightningd-1 2023-08-12T01:00:09.337Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Sending towire_channeld_funding_depth with channel state CHANNELD_AWAITING_SPLICE
lightningd-1 2023-08-12T01:00:09.338Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: attempting update blockheight 8701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e
lightningd-1 2023-08-12T01:00:09.364Z DEBUG   gossipd: REPLY WIRE_GOSSIPD_NEW_BLOCKHEIGHT_REPLY with 0 fds
lightningd-1 2023-08-12T01:00:09.364Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Current channel id is 103x1x0, splice_short_channel_id now set to 109x1x0
lightningd-1 2023-08-12T01:00:09.365Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_out WIRE_SPLICE_LOCKED
lightningd-1 2023-08-12T01:00:09.371Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: billboard: Channel ready for use. Channel announced.
lightningd-2 2023-08-12T01:00:09.493Z DEBUG   lightningd: Adding block 109: 40735692cde6255d8e7901a2ed42c2815731a7bbf72bfd9f302ece02b232e953
lightningd-2 2023-08-12T01:00:09.530Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: Got UTXO spend for 3e7179ad4dcfde6e4b5e733a5ca720859ade3cae3facd1bae44784f809da0187:0: 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644
lightningd-2 2023-08-12T01:00:09.549Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_in WIRE_SPLICE_LOCKED
lightningd-2 2023-08-12T01:00:09.561Z DEBUG   gossipd: Deleting channel 103x1x0 due to the funding outpoint being spent
lightningd-2 2023-08-12T01:00:09.725Z DEBUG   lightningd: Adding block 110: 0f48579d9b6ea5e3df34167d7a9a79f8c3120f194131ecb82f30b81095395bcd
lightningd-2 2023-08-12T01:00:09.855Z DEBUG   lightningd: Adding block 111: 238c8310e7a21d56602afa92fa66cfe5a8918e01adc1b15180c1c0e13e70ca64
lightningd-2 2023-08-12T01:00:09.957Z DEBUG   lightningd: Adding block 112: 5d8b5328973ca5e2ed6757254b0ff322df08f6058390db7411642792575fc0af
lightningd-2 2023-08-12T01:00:10.057Z DEBUG   lightningd: Adding block 113: 0d43b134c62c6f08743eaa5ac54e1c4914fd1ef17a2822b5d0344bbd9ec01109
lightningd-2 2023-08-12T01:00:10.175Z DEBUG   lightningd: Adding block 114: 582db90b3e3fd0af02ea1dc2ee2e7171ccd679683abfa19f96e6fd53084b3ac4
lightningd-2 2023-08-12T01:00:10.245Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: Got depth change 0->6 for 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644
lightningd-2 2023-08-12T01:00:10.247Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: Funding tx 4109e19d684cba7628b2b4ee808154422675253755e06237b207c6d34d15a644 depth 6 of 1
lightningd-2 2023-08-12T01:00:10.286Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: Sending towire_channeld_funding_depth with channel state CHANNELD_AWAITING_SPLICE
lightningd-2 2023-08-12T01:00:10.291Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: attempting update blockheight 8701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e
lightningd-2 2023-08-12T01:00:10.311Z DEBUG   gossipd: REPLY WIRE_GOSSIPD_NEW_BLOCKHEIGHT_REPLY with 0 fds
lightningd-2 2023-08-12T01:00:10.312Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Current channel id is 103x1x0, splice_short_channel_id now set to 109x1x0
lightningd-2 2023-08-12T01:00:10.313Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_out WIRE_SPLICE_LOCKED
lightningd-1 2023-08-12T01:00:10.316Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_SPLICE_LOCKED
lightningd-1 2023-08-12T01:00:10.318Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: mutual splice_locked, scid LOCAL & REMOTE updated to: 109x1x0
lightningd-2 2023-08-12T01:00:10.326Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: mutual splice_locked, scid LOCAL & REMOTE updated to: 109x1x0
lightningd-1 2023-08-12T01:00:10.335Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: mutual splice_locked, updating change from: { funding=1000000sat, opener=LOCAL, local={ owed_local=1000000000msat, owed_remote=0msat }, remote={ owed_local=1000000000msat, owed_remote=0msat } }
lightningd-2 2023-08-12T01:00:10.338Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: mutual splice_locked, updating change from: { funding=1000000sat, opener=REMOTE, local={ owed_local=0msat, owed_remote=1000000000msat }, remote={ owed_local=0msat, owed_remote=1000000000msat } }
lightningd-1 2023-08-12T01:00:10.344Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: mutual splice_locked, channel updated to: { funding=1100000sat, opener=LOCAL, local={ owed_local=1100000000msat, owed_remote=0msat }, remote={ owed_local=1100000000msat, owed_remote=0msat } }
lightningd-2 2023-08-12T01:00:10.346Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: mutual splice_locked, channel updated to: { funding=1100000sat, opener=REMOTE, local={ owed_local=0msat, owed_remote=1100000000msat }, remote={ owed_local=0msat, owed_remote=1100000000msat } }
lightningd-1 2023-08-12T01:00:10.518Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: lightningd, splice_locked clearing inflights
lightningd-1 2023-08-12T01:00:10.535Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: Moving channel state from CHANNELD_AWAITING_SPLICE to CHANNELD_NORMAL
lightningd-1 2023-08-12T01:00:10.535Z INFO    022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: State changed from CHANNELD_AWAITING_SPLICE to CHANNELD_NORMAL
lightningd-2 2023-08-12T01:00:10.551Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: lightningd, splice_locked clearing inflights
lightningd-2 2023-08-12T01:00:10.555Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: Moving channel state from CHANNELD_AWAITING_SPLICE to CHANNELD_NORMAL
lightningd-2 2023-08-12T01:00:10.556Z INFO    0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: State changed from CHANNELD_AWAITING_SPLICE to CHANNELD_NORMAL
lightningd-2 2023-08-12T01:00:10.566Z DEBUG   lightningd: update_feerates: feerate = 11000, min=1875, max=150000, penalty=7500
lightningd-2 2023-08-12T01:00:10.567Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-chan#1: attempting update blockheight 8701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e
lightningd-1 2023-08-12T01:00:10.579Z DEBUG   lightningd: update_feerates: feerate = 11000, min=1875, max=150000, penalty=7500
lightningd-1 2023-08-12T01:00:10.579Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: attempting update blockheight 8701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e
lightningd-2 2023-08-12T01:00:10.586Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-hsmd: Got WIRE_HSMD_CANNOUNCEMENT_SIG_REQ
lightningd-2 2023-08-12T01:00:10.586Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Exchanging announcement signatures.
lightningd-2 2023-08-12T01:00:10.587Z DEBUG   hsmd: Client: Received message 2 from client
lightningd-2 2023-08-12T01:00:10.588Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_out WIRE_ANNOUNCEMENT_SIGNATURES
lightningd-2 2023-08-12T01:00:10.589Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-hsmd: Got WIRE_HSMD_CANNOUNCEMENT_SIG_REQ
lightningd-2 2023-08-12T01:00:10.589Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: billboard: Channel ready for use. Waiting for their announcement signatures.
lightningd-2 2023-08-12T01:00:10.590Z DEBUG   hsmd: Client: Received message 2 from client
lightningd-2 2023-08-12T01:00:10.591Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: billboard: Channel ready for use. Waiting for their announcement signatures.
lightningd-2 2023-08-12T01:00:10.593Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: send_channel_update 0
lightningd-1 2023-08-12T01:00:10.596Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-hsmd: Got WIRE_HSMD_CANNOUNCEMENT_SIG_REQ
lightningd-1 2023-08-12T01:00:10.596Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Exchanging announcement signatures.
lightningd-1 2023-08-12T01:00:10.597Z DEBUG   hsmd: Client: Received message 2 from client
lightningd-1 2023-08-12T01:00:10.599Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_out WIRE_ANNOUNCEMENT_SIGNATURES
lightningd-1 2023-08-12T01:00:10.600Z DEBUG   plugin-bookkeeper: coin_move 2 (channel_open) 1100000000msat -0msat chain_mvt 1691802010
lightningd-1 2023-08-12T01:00:10.600Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-hsmd: Got WIRE_HSMD_CANNOUNCEMENT_SIG_REQ
lightningd-1 2023-08-12T01:00:10.601Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: billboard: Channel ready for use. Waiting for their announcement signatures.
lightningd-1 2023-08-12T01:00:10.602Z DEBUG   hsmd: Client: Received message 2 from client
lightningd-1 2023-08-12T01:00:10.603Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: billboard: Channel ready for use. Waiting for their announcement signatures.
lightningd-1 2023-08-12T01:00:10.605Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: send_channel_update 0
lightningd-1 2023-08-12T01:00:10.615Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: send_channel_update 0
lightningd-1 2023-08-12T01:00:10.617Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_ANNOUNCEMENT_SIGNATURES
lightningd-2 2023-08-12T01:00:10.619Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: billboard: Channel ready for use. Waiting for their announcement signatures.
lightningd-2 2023-08-12T01:00:10.620Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-gossipd: local_channel_update for unknown 109x1x0
lightningd-2 2023-08-12T01:00:10.621Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_in WIRE_ANNOUNCEMENT_SIGNATURES
lightningd-1 2023-08-12T01:00:10.617Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: billboard: Channel ready for use. Channel announced.
lightningd-2 2023-08-12T01:00:10.633Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: billboard: Channel ready for use. Channel announced.
lightningd-2 2023-08-12T01:00:10.634Z DEBUG   plugin-bookkeeper: coin_move 2 (channel_open) 0msat -0msat chain_mvt 1691802010
lightningd-1 2023-08-12T01:00:10.639Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Exchanging announcement signatures.
lightningd-1 2023-08-12T01:00:10.640Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_out WIRE_ANNOUNCEMENT_SIGNATURES
lightningd-1 2023-08-12T01:00:10.641Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_ANNOUNCEMENT_SIGNATURES
lightningd-1 2023-08-12T01:00:10.642Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: billboard: Channel ready for use. Channel announced.
lightningd-1 2023-08-12T01:00:10.650Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-gossipd: local_channel_update for unknown 109x1x0
lightningd-2 2023-08-12T01:00:10.654Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Exchanging announcement signatures.
lightningd-2 2023-08-12T01:00:10.655Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_out WIRE_ANNOUNCEMENT_SIGNATURES
lightningd-2 2023-08-12T01:00:10.656Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_in WIRE_ANNOUNCEMENT_SIGNATURES
lightningd-2 2023-08-12T01:00:10.656Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: billboard: Channel ready for use. Channel announced.
lightningd-1 2023-08-12T01:00:10.652Z **BROKEN** 022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-gossipd: invalid local_channel_announcement 0bbe022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d5901b0010078c3314666731e339c0b8434f7824797a084ed7ca3655991a672da068e2c44cb53b57b53a296c133bc879109a8931dc31e6913a4bda3d58559b99b95663e6d526de1a52ab38f0c0e2c18c3bc425ab686f61d5c2237a6d67885209ccb1d72a4f92a8021c8d7608e5ad835b604f43c4638331ab8f8a07afe5dcb5b2456d0fe900f679cabaccc6e39dbd95a4dac90e75a258893c3aa3f733d1b8890174d5ddea8003cadffe557773c54d2c07ca1d535c4bf85885f879ae466c16a516e8ffcfec1741088fb5422d3aee7807581c14f8e8cc320d5e0af92818d59fe1c7482e30369bb4680fb9f3da8aa7bc046a20fe834560979c84a128974378fa29f1a716c344e05000006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f00006d0000010000022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d590266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c0351802e3bd38009866c9da8ec4aa99cc4ea9c6c0dd46df15c61ef0ce1f271291714e5702324266de8403b3ab157a09f1f784d587af61831c998c151bcc21bb74c2b2314b (000100000000000000000000000000000000000000000000000000000000000000000460426164206e6f64655f7369676e61747572655f3120333034343032323037386333333134363636373331653333396330623834333466373832343739376130383465643763613336353539393161363732646130363865326334346362303232303533623537623533613239366331333362633837393130396138393331646333316536393133613462646133643538353539623939623935363633653664353220686173682038393364613434613233333736373834386333363164653438656664323061333166646161303632393366623336643864353937363438393864353731633961206f6e206368616e6e656c5f616e6e6f756e63656d656e7420303130303738633333313436363637333165333339633062383433346637383234373937613038346564376361333635353939316136373264613036386532633434636235336235376235336132393663313333626338373931303961383933316463333165363931336134626461336435383535396239396239353636336536643532366465316135326162333866306330653263313863336263343235616236383666363164356332323337613664363738383532303963636231643732613466393261383032316338643736303865356164383335623630346634336334363338333331616238663861303761666535646362356232343536643066653930306636373963616261636363366533396462643935613464616339306537356132353838393363336161336637333364316238383930313734643564646561383030336361646666653535373737336335346432633037636131643533356334626638353838356638373961653436366331366135313665386666636665633137343130383866623534323264336165653738303735383163313466386538636333323064356530616639323831386435396665316337343832653330333639626234363830666239663364613861613762633034366132306665383334353630393739633834613132383937343337386661323966316137313663333434653035303030303036323236653436313131613062353963616166313236303433656235626266323863333466336135653333326131666337623262373363663138383931306630303030366430303030303130303030303232643232333632306133353961343766663766376163343437633835633436633932336461353333383932323161303035346331316331653363613331643539303236366534353938643164336334313566353732613834383838333062363066376537343465643932333565623062316261393332383362333135633033353138303265336264333830303938363663396461386563346161393963633465613963366330646434366466313563363165663063653166323731323931373134653537303233323432363664653834303362336162313537613039663166373834643538376166363138333163393938633135316263633231626237346332623233313462)
ddustin commented 1 year ago
      ** mutual_splice_locked **

      WIRE_ANNOUNCEMENT_SIGNATURES <- l2
l1 -> WIRE_ANNOUNCEMENT_SIGNATURES
l1 <- WIRE_ANNOUNCEMENT_SIGNATURES [A]
      WIRE_ANNOUNCEMENT_SIGNATURES -> l2
l1 -> WIRE_ANNOUNCEMENT_SIGNATURES
l1 <- WIRE_ANNOUNCEMENT_SIGNATURES [B]
      WIRE_ANNOUNCEMENT_SIGNATURES <- l2
      WIRE_ANNOUNCEMENT_SIGNATURES -> l2

l1 is getting an extra announcement signatures that was never sent by l2 in these logs. I'm guessing [B] is actually the valid one and [A] is the stale one. It almost looks like it's a queued up announcement_sigs that got sent earlier on, maybe the bug is announcement sigs doing something weird with STFU mode 🤔.

Can you reference the full logs? Would love to see when this extra WIRE_ANNOUNCEMENT_SIGNATURES is sent 👀.

ddustin commented 1 year ago

Ah I found something interesting! There is a random send_channel_update 0 and Trying commit in the middle of the splice where there shouldn't be anything like that.

lightningd-2 2023-08-12T01:00:07.464Z INFO    0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Splice signing tx: 02000000028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be6c000000 [2]
lightningd-2 2023-08-12T01:00:07.465Z DEBUG   hsmd: Client: Received message 29 from client [2]
lightningd-2 2023-08-12T01:00:07.466Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Splice: we sign first [2]
lightningd-1 2023-08-12T01:00:07.475Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Received revoke_and_ack [1]
lightningd-1 2023-08-12T01:00:07.475Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: No commits outstanding after recv revoke_and_ack [1]
lightningd-1 2023-08-12T01:00:07.492Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Sending master 1022 [1]
lightningd-1 2023-08-12T01:00:07.496Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: got revoke 0: 0 changed [1]
lightningd-2 2023-08-12T01:00:07.507Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_out WIRE_TX_SIGNATURES [2]
lightningd-1 2023-08-12T01:00:07.581Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: ... , awaiting 1122 [1]
lightningd-1 2023-08-12T01:00:07.586Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Got it! [1]
lightningd-1 2023-08-12T01:00:07.587Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: revoke_and_ack LOCAL: remote_per_commit = 02d2a7828d7be845ad8e5d1cdce493d3932f509528c309b59e8414077d16c26462, old_remote_per_commit = 020b2bb4220acc4114c47375e9b71e072f7cac127e1bb453d49595699958cfa9e4 [1]
lightningd-1 2023-08-12T01:00:07.701Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: user_finalized peer->stfu_wait_single_msg: 0 [1]
lightningd-1 2023-08-12T01:00:07.723Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: send_channel_update 0 [1] <---- What's this doing here?
lightningd-1 2023-08-12T01:00:07.730Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Trying commit [1] <---- What's this doing here?
lightningd-1 2023-08-12T01:00:07.731Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Can't send commit: nothing to send, feechange not wanted ({ SENT_ADD_ACK_REVOCATION:7500 }) blockheight not wanted ({ SENT_ADD_ACK_REVOCATION:0 }) [1]
lightningd-1 2023-08-12T01:00:08.106Z DEBUG   hsmd: Client: Received message 7 from client [1]
lightningd-1 2023-08-12T01:00:08.113Z DEBUG   lightningd: splice_signed input PSBT version 2 [1]
lightningd-1 2023-08-12T01:00:08.201Z INFO    022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Splice signing tx: 02000000028701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0000000000000000008701da09f88447e4bad1ac3fae3cde9a8520a75c3a735e4b6edecf4dad79713e0100000000fdffffff02e0c81000000000002200205b8cd3b914cf67cdd8fa6273c930353dd36476734fbd962102c2df53b90880cd4e7c0d00000000002251207836355fdc8a82dc4cb00a772c5554151d06384a4dd65e8d3f68ac08566b84be6c000000 [1]
lightningd-1 2023-08-12T01:00:08.262Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-hsmd: Got WIRE_HSMD_SIGN_SPLICE_TX [1]
lightningd-1 2023-08-12T01:00:08.270Z DEBUG   hsmd: Client: Received message 29 from client [1]
lightningd-1 2023-08-12T01:00:08.273Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_TX_SIGNATURES [1]
lightningd-1 2023-08-12T01:00:08.285Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: Left STFU mode. [1]

This is likely the reltimers randomly firing during the splice.

They still aren't triggering the peer_out WIRE_ANNOUNCEMENT_SIGNATURES log message I'd expect to see, though this timing issue seems great to fix in any case.

ddustin commented 1 year ago

This PR https://github.com/ElementsProject/lightning/pull/6554 disables the announcement and commitment timers during STFU makes a lot of sense to me in general. Not 100% convinced it will fix this issue without a little more details but I suspect it probably will.

It kind of fits this could happen when we're doing the events super fast in CI and have dev fast gossip enabled, more likely to hit timing issues like this.

ddustin commented 1 year ago

Okay I solved the mystery of the phantom WIRE_ANNOUNCEMENT_SIGNATURES message. It's just an artifact of the way the logs are created. Here are the relevant log lines with excess info trimmed and some notes added.

l2: DEBUG   026...518-channeld-chan#1: peer_out WIRE_ANNOUNCEMENT_SIGNATURES l2 -> 1 pending [A]
l1: DEBUG   022...d59-channeld-chan#1: peer_out WIRE_ANNOUNCEMENT_SIGNATURES l1 -> 1 pending [B]
l1: DEBUG   022...d59-channeld-chan#1: peer_in WIRE_ANNOUNCEMENT_SIGNATURES l1 <- 0 pending [C]
l2: DEBUG   026...518-channeld-chan#1: peer_in WIRE_ANNOUNCEMENT_SIGNATURES l2 <- 0 pending [D]
l1: DEBUG   022...d59-channeld-chan#1: peer_out WIRE_ANNOUNCEMENT_SIGNATURES l1 -> 1 pending [E]
l1: DEBUG   022...d59-channeld-chan#1: peer_in WIRE_ANNOUNCEMENT_SIGNATURES l1 <- -1 pending [F]
l2: DEBUG   026...518-channeld-chan#1: peer_out WIRE_ANNOUNCEMENT_SIGNATURES l2 -> 0 pending [G]
l2: DEBUG   026...518-channeld-chan#1: peer_in WIRE_ANNOUNCEMENT_SIGNATURES l2 <- 0 pending [H]

The G line actually happened before the F line, however l2's logger was running slightly behind l1, so it ended up on the line below.

lightningd-1 2023-08-12T01:00:10.641Z** DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: peer_in WIRE_ANNOUNCEMENT_SIGNATURES
lightningd-1 2023-08-12T01:00:10.642Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-channeld-chan#1: billboard: Channel ready for use. Channel announced.
lightningd-1 2023-08-12T01:00:10.650Z DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-gossipd: local_channel_update for unknown 109x1x0
lightningd-2 2023-08-12T01:00:10.654Z DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: Exchanging announcement signatures.
lightningd-2 2023-08-12T01:00:10.655Z** DEBUG   0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-channeld-chan#1: peer_out WIRE_ANNOUNCEMENT_SIGNATURES

Interestingly even the timestamps are incorrect

lightningd-1 2023-08-12T01:00:10.641Z .. peer_in WIRE_ANNOUNCEMENT_SIGNATURES
...
lightningd-2 2023-08-12T01:00:10.655Z .. peer_out WIRE_ANNOUNCEMENT_SIGNATURES

With that mystery solved and the error being invalid local_channel_announcement, I am convinced PR #6554 fixes this.

ddustin commented 1 year ago

Closing this as PR https://github.com/ElementsProject/lightning/pull/6554 was merged