We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c459ce commit e51038aCopy full SHA for e51038a
lightning/src/blinded_path/payment.rs
@@ -191,8 +191,7 @@ pub(super) fn compute_payinfo(
191
// Get an iterator over `(curr_hop_tlvs..last_intermediate_hop_tlvs]`.
192
let next_nodes = intermediate_nodes.iter()
193
.enumerate()
194
- .skip_while(|(i, _)| *i != idx)
195
- .skip(1)
+ .skip(idx + 1)
196
.map(|(_, (_, tlvs))| tlvs);
197
for node in next_nodes {
198
// The min htlc for a hop is that hop's htlc_minimum_msat minus the following hops' fees
0 commit comments