From ab4b87209886569ba94df10ee27dccf9c0562d05 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 7 Mar 2024 10:39:37 +0100 Subject: [PATCH] Remove redundant `claiming_channel_id` variable .. as it's the same as `prev_channel_id` defined a few lines above. --- lightning/src/ln/channelmanager.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 78fa47e92..a95681da9 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -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); } -- 2.39.5