We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6023549 commit 4c6f3b8Copy full SHA for 4c6f3b8
lightning/src/chain/chainmonitor.rs
@@ -153,12 +153,14 @@ where C::Target: chain::Filter,
153
pub fn get_claimable_balances(&self, ignored_channels: &[ChannelDetails]) -> Vec<ClaimableBalance> {
154
let mut ret = Vec::new();
155
let monitors = self.monitors.read().unwrap();
156
- 'monitor_iter: for (funding_outpoint, monitor) in monitors.iter() {
+ for (_, monitor) in monitors.iter().filter(|(funding_outpoint, _)| {
157
for chan in ignored_channels {
158
if chan.funding_txo.as_ref() == Some(funding_outpoint) {
159
- continue 'monitor_iter;
+ return false;
160
}
161
162
+ true
163
+ }) {
164
ret.append(&mut monitor.get_claimable_balances());
165
166
ret
0 commit comments