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 @@ -3588,7 +3588,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3588
3588
}
3589
3589
bitcoin_tx.txid
3590
3590
};
3591
- let mut htlcs_cloned: Vec<_> = commitment_data.htlcs_included.iter().map(|htlc| (htlc.0.clone(), htlc.1.map(|h| h.clone()))).collect();
3591
+ let htlcs_cloned: Vec<_> = commitment_data.htlcs_included.iter().map(|htlc| (htlc.0.clone(), htlc.1.map(|h| h.clone()))).collect();
3592
3592
3593
3593
// If our counterparty updated the channel fee in this commitment transaction, check that
3594
3594
// they can actually afford the new fee now.
@@ -3627,7 +3627,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
3627
3627
let holder_keys = commitment_data.stats.tx.trust().keys();
3628
3628
let mut nondust_htlc_sources = Vec::with_capacity(commitment_data.stats.tx.htlcs().len());
3629
3629
let mut dust_htlcs = Vec::with_capacity(htlcs_cloned.len() - commitment_data.stats.tx.htlcs().len());
3630
- for (idx, (htlc, mut source_opt)) in htlcs_cloned.drain(.. ).enumerate() {
3630
+ for (idx, (htlc, mut source_opt)) in htlcs_cloned.into_iter( ).enumerate() {
3631
3631
if let Some(_) = htlc.transaction_output_index {
3632
3632
let htlc_tx = chan_utils::build_htlc_transaction(&commitment_txid, commitment_data.stats.tx.feerate_per_kw(),
3633
3633
funding.get_counterparty_selected_contest_delay().unwrap(), &htlc, funding.get_channel_type(),
You can’t perform that action at this time.
0 commit comments