Skip to content

Commit 42a69f2

Browse files
committed
Remove redundant claiming_channel_id variable
.. as it's the same as `prev_channel_id` defined a few lines above.
1 parent 6d44db1 commit 42a69f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/ln/channelmanager.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -5756,8 +5756,6 @@ where
57565756
let completed_blocker = RAAMonitorUpdateBlockingAction::from_prev_hop_data(&hop_data);
57575757
#[cfg(debug_assertions)]
57585758
let claiming_chan_funding_outpoint = hop_data.outpoint;
5759-
#[cfg(debug_assertions)]
5760-
let claiming_channel_id = hop_data.channel_id;
57615759
let res = self.claim_funds_from_hop(hop_data, payment_preimage,
57625760
|htlc_claim_value_msat, definitely_duplicate| {
57635761
let chan_to_release =
@@ -5815,7 +5813,7 @@ where
58155813
BackgroundEvent::MonitorUpdatesComplete {
58165814
channel_id, ..
58175815
} =>
5818-
*channel_id == claiming_channel_id,
5816+
*channel_id == prev_channel_id,
58195817
}
58205818
}), "{:?}", *background_events);
58215819
}

0 commit comments

Comments
 (0)