Skip to content

Commit d909a4e

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 3852c0a commit d909a4e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5763,8 +5763,6 @@ where
57635763
let completed_blocker = RAAMonitorUpdateBlockingAction::from_prev_hop_data(&hop_data);
57645764
#[cfg(debug_assertions)]
57655765
let claiming_chan_funding_outpoint = hop_data.outpoint;
5766-
#[cfg(debug_assertions)]
5767-
let claiming_channel_id = hop_data.channel_id;
57685766
let res = self.claim_funds_from_hop(hop_data, payment_preimage,
57695767
|htlc_claim_value_msat, definitely_duplicate| {
57705768
let chan_to_release =
@@ -5822,7 +5820,7 @@ where
58225820
BackgroundEvent::MonitorUpdatesComplete {
58235821
channel_id, ..
58245822
} =>
5825-
*channel_id == claiming_channel_id,
5823+
*channel_id == prev_channel_id,
58265824
}
58275825
}), "{:?}", *background_events);
58285826
}

0 commit comments

Comments
 (0)