We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef597b commit 3abd14bCopy full SHA for 3abd14b
lightning/src/ln/onion_utils.rs
@@ -349,7 +349,9 @@ pub(super) fn build_onion_payloads<'a>(
349
path.hops.len() + path.blinded_tail.as_ref().map_or(0, |t| t.hops.len()),
350
);
351
352
- // don't include blinded tail when Trampoline hops are present
+ // 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.
355
let blinded_tail_with_hop_iter = path.trampoline_hops.is_empty().then(|| {
356
path.blinded_tail.as_ref().map(|bt| BlindedTailHopIter {
357
hops: bt.hops.iter(),
0 commit comments