]> git.bitcoin.ninja Git - rust-lightning/commit
Do not remove Outbound Channel immediately when peer disconnects
authorshaavan <shaavan.github@gmail.com>
Sun, 10 Dec 2023 12:47:32 +0000 (18:17 +0530)
committershaavan <shaavan.github@gmail.com>
Wed, 31 Jan 2024 12:29:50 +0000 (17:59 +0530)
commitddf75afd167ac4adb5824180b4125d87563fa31a
tree2ede113eab2df9226044cb865a4858273db3e2ed
parent5bf58f0d33b13bd3d9f88c4f2021fbd77745274a
Do not remove Outbound Channel immediately when peer disconnects

- Do not remove channel immediately when peer_disconnect, instead
  removed it after some time if peer doesn't reconnect soon (handled in
previous commit).
- Do not mark per ok_to_remove if we have some OutboundV1Channels too.
- Rebroadcast SendOpenChannel for outboundV1Channel when peer
  reconnects.
- Update the relevant tests to account for the behavior change.
- Repurpose the test_disconnect_in_funding_batch to test that all
  channels in the batch close when one them closes.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs