From: Elias Rohrer Date: Thu, 7 Mar 2024 09:39:37 +0000 (+0100) Subject: Remove redundant `claiming_channel_id` variable X-Git-Tag: v0.0.123-beta~35^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=ab4b87209886569ba94df10ee27dccf9c0562d05;p=rust-lightning Remove redundant `claiming_channel_id` variable .. as it's the same as `prev_channel_id` defined a few lines above. --- 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); }