]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove redundant `claiming_channel_id` variable
authorElias Rohrer <dev@tnull.de>
Thu, 7 Mar 2024 09:39:37 +0000 (10:39 +0100)
committerElias Rohrer <dev@tnull.de>
Tue, 19 Mar 2024 12:29:09 +0000 (13:29 +0100)
.. as it's the same as `prev_channel_id` defined a few lines above.

lightning/src/ln/channelmanager.rs

index 78fa47e9272cc735dbe709c1d8cc9286d7b26c19..a95681da9f79047b73c488ac71427daadf3328ec 100644 (file)
@@ -5756,8 +5756,6 @@ where
                                let completed_blocker = RAAMonitorUpdateBlockingAction::from_prev_hop_data(&hop_data);
                                #[cfg(debug_assertions)]
                                let claiming_chan_funding_outpoint = hop_data.outpoint;
-                               #[cfg(debug_assertions)]
-                               let claiming_channel_id = hop_data.channel_id;
                                let res = self.claim_funds_from_hop(hop_data, payment_preimage,
                                        |htlc_claim_value_msat, definitely_duplicate| {
                                                let chan_to_release =
@@ -5815,7 +5813,7 @@ where
                                                                                BackgroundEvent::MonitorUpdatesComplete {
                                                                                        channel_id, ..
                                                                                } =>
-                                                                                       *channel_id == claiming_channel_id,
+                                                                                       *channel_id == prev_channel_id,
                                                                        }
                                                                }), "{:?}", *background_events);
                                                        }