File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3500,7 +3500,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3500
3500
}
3501
3501
bitcoin_tx.txid
3502
3502
};
3503
- let mut htlcs_cloned: Vec<_> = commitment_stats.htlcs_included.iter().map(|htlc| (htlc.0.clone(), htlc.1.map(|h| h.clone()))).collect();
3503
+ let htlcs_cloned: Vec<_> = commitment_stats.htlcs_included.iter().map(|htlc| (htlc.0.clone(), htlc.1.map(|h| h.clone()))).collect();
3504
3504
3505
3505
// If our counterparty updated the channel fee in this commitment transaction, check that
3506
3506
// they can actually afford the new fee now.
@@ -3553,7 +3553,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3553
3553
3554
3554
let mut nondust_htlc_sources = Vec::with_capacity(htlcs_cloned.len());
3555
3555
let mut htlcs_and_sigs = Vec::with_capacity(htlcs_cloned.len());
3556
- for (idx, (htlc, mut source_opt)) in htlcs_cloned.drain(.. ).enumerate() {
3556
+ for (idx, (htlc, mut source_opt)) in htlcs_cloned.into_iter( ).enumerate() {
3557
3557
if let Some(_) = htlc.transaction_output_index {
3558
3558
let htlc_tx = chan_utils::build_htlc_transaction(&commitment_txid, commitment_stats.feerate_per_kw,
3559
3559
funding.get_counterparty_selected_contest_delay().unwrap(), &htlc, &self.channel_type,
You can’t perform that action at this time.
0 commit comments