Skip to content

Commit 2324361

Browse files
fixup! Add BOLT 12 payer proof PoC implementation
1 parent d25942f commit 2324361

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lightning/src/offers/merkle.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,7 @@ fn build_tree_with_disclosure(
444444
break;
445445
}
446446

447-
let left_positions: Vec<_> = (0..num_leaves).step_by(step).collect();
448-
let right_positions: Vec<_> = (offset..num_leaves).step_by(step).collect();
449-
450-
for (&left_pos, &right_pos) in left_positions.iter().zip(right_positions.iter()) {
447+
for (left_pos, right_pos) in (0..num_leaves).step_by(step).zip((offset..num_leaves).step_by(step)) {
451448
let left_hash = hashes[left_pos];
452449
let right_hash = hashes[right_pos];
453450
let left_incl = is_included[left_pos];

0 commit comments

Comments
 (0)