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 a283736 commit 71226d5Copy full SHA for 71226d5
lightning-invoice/src/lib.rs
@@ -1169,7 +1169,9 @@ impl Invoice {
1169
1170
/// Returns a list of all routes included in the invoice as the underlying hints
1171
pub fn route_hints(&self) -> Vec<&RouteHint> {
1172
- self.private_routes().into_iter().map(|route| &**route).collect()
+ find_all_extract!(
1173
+ self.signed_invoice.known_tagged_fields(), TaggedField::PrivateRoute(ref x), x
1174
+ ).map(|route| &**route).collect()
1175
}
1176
1177
/// Returns the currency for which the invoice was issued
0 commit comments