File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -2057,13 +2057,9 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2057
2057
& self . current_counterparty_commitment_txid . unwrap ( ) ) . unwrap ( ) ;
2058
2058
for ( _, ref source_opt) in self . counterparty_claimable_outpoints . get ( & txid) . unwrap ( ) {
2059
2059
if let Some ( source) = source_opt {
2060
- let mut also_in_cur_commitment = false ;
2061
- for ( _, ref cur_source_opt) in cur_claimables {
2062
- if cur_source_opt == source_opt {
2063
- also_in_cur_commitment = true ;
2064
- }
2065
- }
2066
- if !also_in_cur_commitment {
2060
+ if !cur_claimables. iter ( )
2061
+ . any ( |( _, cur_source_opt) | cur_source_opt == source_opt)
2062
+ {
2067
2063
self . counterparty_fulfilled_htlcs . remove ( & SentHTLCId :: from_source ( source) ) ;
2068
2064
}
2069
2065
}
You can’t perform that action at this time.
0 commit comments