Refactor ChainMonitor::update_channel error case
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 29 Nov 2023 16:51:33 +0000 (10:51 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 1 Dec 2023 17:54:00 +0000 (11:54 -0600)
commite21a500668179c7084e2df5cb75019810eb03cbe
tree05528865424ccbfcfdb63e9c59969b94078c5a84
parente6d8f350fc5a725c74df2f2b09b375b5ab1edf7b
Refactor ChainMonitor::update_channel error case

Move the handling of ChannelMonitorUpdateStatus::UnrecoverableError to
the point of error to avoid needing an unwrap later when re-wrapping the
logger.
lightning/src/chain/chainmonitor.rs