We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 336399e commit 1ef597bCopy full SHA for 1ef597b
lightning/src/ln/onion_utils.rs
@@ -350,16 +350,14 @@ pub(super) fn build_onion_payloads<'a>(
350
);
351
352
// don't include blinded tail when Trampoline hops are present
353
- let blinded_tail_with_hop_iter = if path.trampoline_hops.is_empty() {
+ let blinded_tail_with_hop_iter = path.trampoline_hops.is_empty().then(|| {
354
path.blinded_tail.as_ref().map(|bt| BlindedTailHopIter {
355
hops: bt.hops.iter(),
356
blinding_point: bt.blinding_point,
357
final_value_msat: bt.final_value_msat,
358
excess_final_cltv_expiry_delta: bt.excess_final_cltv_expiry_delta,
359
})
360
- } else {
361
- None
362
- };
+ }).flatten();
363
364
let (value_msat, cltv) = build_onion_payloads_callback(
365
path.hops.iter(),
0 commit comments