Clean up test handling of resending responding commitment_signed
authorMatt Corallo <git@bluematt.me>
Thu, 31 Aug 2023 19:06:34 +0000 (19:06 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 12 Sep 2023 16:03:37 +0000 (16:03 +0000)
commite37a40080c565ae1fa0c3e8a058367191d35143b
tree696d8a5f5cfc5ab869950ebf15f872935226442f
parent4835b1697c38110050004fb493517e26eaaf4685
Clean up test handling of resending responding commitment_signed

When we need to rebroadcast a `commitment_signed` on reconnect in
response to a previous update (ie not one which contains any
updates) we previously hacked in support for it by passing a `-1`
for the number of expected update_add_htlcs. This is a mess, and
with the introduction of `ReconnectArgs` we can now clean it up
easily with a new bool.
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs