We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a7a479 commit c1ddbf6Copy full SHA for c1ddbf6
lightning/src/blinded_path/payment.rs
@@ -186,12 +186,7 @@ pub(super) fn compute_payinfo(
186
cltv_expiry_delta = cltv_expiry_delta.checked_add(tlvs.payment_relay.cltv_expiry_delta).ok_or(())?;
187
188
let mut htlc_min_candidate = tlvs.payment_constraints.htlc_minimum_msat as u128;
189
- // Get an iterator over `(curr_hop_tlvs..last_intermediate_hop_tlvs]`.
190
- let next_nodes = intermediate_nodes.iter()
191
- .enumerate()
192
- .skip(idx + 1)
193
- .map(|(_, (_, tlvs))| tlvs);
194
- for node in next_nodes {
+ for (_, node) in intermediate_nodes.iter().skip(idx + 1) {
195
// The min htlc for a hop is that hop's htlc_minimum_msat minus the following hops' fees
196
// because the sender will automatically include that following fee in the amount that this
197
// hop forwards.
0 commit comments