Skip to content

Commit 3abd14b

Browse files
committed
f: Trampoline/blinded path position rationale
1 parent 1ef597b commit 3abd14b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/onion_utils.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ pub(super) fn build_onion_payloads<'a>(
349349
path.hops.len() + path.blinded_tail.as_ref().map_or(0, |t| t.hops.len()),
350350
);
351351

352-
// don't include blinded tail when Trampoline hops are present
352+
// When Trampoline hops are present, they are presumed to follow the non-Trampoline hops, which
353+
// means that the blinded path needs not be appended to the regular hops, and is only included
354+
// among the Trampoline onion payloads.
353355
let blinded_tail_with_hop_iter = path.trampoline_hops.is_empty().then(|| {
354356
path.blinded_tail.as_ref().map(|bt| BlindedTailHopIter {
355357
hops: bt.hops.iter(),

0 commit comments

Comments
 (0)