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.
has_trampoline_hops
Path
1 parent f0fc7b2 commit 5ac7da7Copy full SHA for 5ac7da7
lightning/src/routing/router.rs
@@ -519,6 +519,11 @@ impl Path {
519
None => self.hops.last().map(|hop| hop.cltv_expiry_delta)
520
}
521
522
+
523
+ /// True if this [`Path`] has at least one Trampoline hop.
524
+ pub fn has_trampoline_hops(&self) -> bool {
525
+ self.blinded_tail.as_ref().map_or(false, |bt| !bt.trampoline_hops.is_empty())
526
+ }
527
528
529
/// A route directs a payment from the sender (us) to the recipient. If the recipient supports MPP,
0 commit comments