Make `ChainMonitor::get_claimable_balances` take a slice of refs
[rust-lightning] / lightning / src / chain / chainmonitor.rs
index 101ad6652007ff46373fd877a066efa1fd111992..0d3f87645ce4c4c1250d2d42a3a085f419ac13a6 100644 (file)
@@ -150,7 +150,7 @@ where C::Target: chain::Filter,
        ///
        /// See [`ChannelMonitor::get_claimable_balances`] for more details on the exact criteria for
        /// inclusion in the return value.
-       pub fn get_claimable_balances(&self, ignored_channels: &[ChannelDetails]) -> Vec<Balance> {
+       pub fn get_claimable_balances(&self, ignored_channels: &[&ChannelDetails]) -> Vec<Balance> {
                let mut ret = Vec::new();
                let monitors = self.monitors.read().unwrap();
                for (_, monitor) in monitors.iter().filter(|(funding_outpoint, _)| {