Merge pull request #3393 from tnull/2024-11-drop-dead-code

Drop dead code from `provide_latest_counterparty_commitment_tx`
This commit is contained in:
Jeffrey Czyz 2024-11-01 09:48:23 -05:00 committed by GitHub
commit ef0f35a7b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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