X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fchannelmonitor.rs;h=f65b5e7f120ce983686ab9719d6fcbde6e8fcd7c;hb=d271d74bc71cf8a825be38734aaceb57e2d5d0a3;hp=2736a425a6784dfb44a0be47cd32b7e9502391fb;hpb=6296eb1c5f607251b09188f2073d4c35bc394d24;p=rust-lightning diff --git a/lightning/src/ln/channelmonitor.rs b/lightning/src/ln/channelmonitor.rs index 2736a425..f65b5e7f 100644 --- a/lightning/src/ln/channelmonitor.rs +++ b/lightning/src/ln/channelmonitor.rs @@ -1293,8 +1293,8 @@ impl ChannelMonitor { /// Allows this monitor to scan only for transactions which are applicable. Note that this is /// optional, without it this monitor cannot be used in an SPV client, but you may wish to - /// avoid this (or call unset_funding_info) on a monitor you wish to send to a watchtower as it - /// provides slightly better privacy. + /// avoid this on a monitor you wish to send to a watchtower as it provides slightly better + /// privacy. /// It's the responsibility of the caller to register outpoint and script with passing the former /// value as key to add_update_monitor. pub(super) fn set_funding_info(&mut self, new_funding_info: (OutPoint, Script)) { @@ -1320,17 +1320,6 @@ impl ChannelMonitor { self.commitment_transaction_number_obscure_factor = commitment_transaction_number_obscure_factor; } - pub(super) fn unset_funding_info(&mut self) { - match self.key_storage { - Storage::Local { ref mut funding_info, .. } => { - *funding_info = None; - }, - Storage::Watchtower { .. } => { - panic!("Channel somehow ended up with its internal ChannelMonitor being in Watchtower mode?"); - }, - } - } - /// Gets the funding transaction outpoint of the channel this ChannelMonitor is monitoring for. pub fn get_funding_txo(&self) -> Option { match self.key_storage {