]> git.bitcoin.ninja Git - rust-lightning/commit
Handle monitor update failure during funding on the fundee side 2019-07-no-unimpl
authorMatt Corallo <git@bluematt.me>
Mon, 29 Jul 2019 17:45:35 +0000 (13:45 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 29 Jul 2019 17:45:35 +0000 (13:45 -0400)
commit8ba352952242421041cef4019d0bf2172e712986
treef74467481a8d7be164b95b95d9493fcbff45ad7f
parentb27f788e91fd4a6d9b2ba5d209e748375781925d
Handle monitor update failure during funding on the fundee side

This carries a surprising amount of complexity despite only being
possible in the case where monitor updating failed during the
processing of funding_generated. Specifically, this requires
handling rebroadcasting funding_locked once we successfully persist
our monitor again.

As an alternative we could never send funding_signed when the
monitor failed to persist, but this approach avoids needless
delays during funding.
src/ln/chanmon_update_fail_tests.rs
src/ln/channel.rs
src/ln/channelmanager.rs
src/ln/functional_test_utils.rs