]> git.bitcoin.ninja Git - rust-lightning/commit
Rm ChannelMonitor merge capabilities in favor of explicit add/update
authorMatt Corallo <git@bluematt.me>
Tue, 11 Feb 2020 23:34:29 +0000 (18:34 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 27 Feb 2020 00:15:32 +0000 (19:15 -0500)
commit3e26bd7a1dfb780d4534304f7e48f66a7ae1a9ea
tree78b528bbe996d8e79a3ddfe10b2251112ba65a68
parent6caed7df7cf21de837d4b31443699a933164b9cd
Rm ChannelMonitor merge capabilities in favor of explicit add/update

This removes the ability to merge ChannelMonitors in favor of
explicit ChannelMonitorUpdates. It further removes
ChannelManager::test_restore_channel_monitor in favor of the new
ChannelManager::channel_monitor_updated method, which explicitly
confirms a set of updates instead of providing the latest copy of
each ChannelMonitor to the user.

This removes almost all need for Channels to have the latest
channel_monitor, except for broadcasting the latest local state.
fuzz/src/chanmon_consistency.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/errors.rs
lightning/src/util/test_utils.rs