mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
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:
parent
299b7bd714
commit
468588f2ff
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue