Skip to content

Commit c8cb994

Browse files
committed
Drop unused variable and loop in channel_monitor_updated
1 parent fba204b commit c8cb994

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,6 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
23362336
pub fn channel_monitor_updated(&self, funding_txo: &OutPoint, highest_applied_update_id: u64) {
23372337
let _persistence_guard = PersistenceNotifierGuard::new(&self.total_consistency_lock, &self.persistence_notifier);
23382338

2339-
let mut close_results = Vec::new();
23402339
let mut htlc_forwards = Vec::new();
23412340
let mut htlc_failures = Vec::new();
23422341
let mut pending_events = Vec::new();
@@ -2413,10 +2412,6 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
24132412
self.fail_htlc_backwards_internal(self.channel_state.lock().unwrap(), failure.0, &failure.1, failure.2);
24142413
}
24152414
self.forward_htlcs(&mut htlc_forwards[..]);
2416-
2417-
for res in close_results.drain(..) {
2418-
self.finish_force_close_channel(res);
2419-
}
24202415
}
24212416

24222417
fn internal_open_channel(&self, counterparty_node_id: &PublicKey, their_features: InitFeatures, msg: &msgs::OpenChannel) -> Result<(), MsgHandleErrInternal> {

0 commit comments

Comments
 (0)