Drop dead code from provide_latest_counterparty_commitment_tx

We drop some dead code that unnecessarily allocates a `Vec` but does
nothing else.
This commit is contained in:
Elias Rohrer 2024-11-01 10:26:46 +01:00
parent 299b7bd714
commit 468588f2ff
No known key found for this signature in database
GPG key ID: 36153082BDF676FD

View file

@ -2855,12 +2855,6 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
self.their_cur_per_commitment_points = Some((commitment_number, their_per_commitment_point, None));
}
}
let mut htlcs = Vec::with_capacity(htlc_outputs.len());
for htlc in htlc_outputs {
if htlc.0.transaction_output_index.is_some() {
htlcs.push(htlc.0);
}
}
}
/// Informs this monitor of the latest holder (ie broadcastable) commitment transaction. The