]> git.bitcoin.ninja Git - rust-lightning/commit
Send peers error messages for failures due to invalid batch funding 2024-04-fix-batch-funding-failures
authorMatt Corallo <git@bluematt.me>
Mon, 29 Apr 2024 21:05:52 +0000 (21:05 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 30 Apr 2024 13:43:32 +0000 (13:43 +0000)
commitb811cba74835c3e866354cb778714837ad488d28
treec8239c6e27f851acd1768be085d2b16a0d46e680
parent6960210f604964583bfe704d6f956cadddcd15a2
Send peers error messages for failures due to invalid batch funding

If we fail to fund a batch open we'll force-close all channels in
the batch, however would previously fail to send error messages to
our peers for any channels we were due to test after the one that
failed.

This commit fixes that issue, sending the required error messages
to allow our peers to clean up their state.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/shutdown_tests.rs