Skip to content

Commit 143e6ef

Browse files
committed
f - check that intro node supports route blinding
1 parent 7e514e4 commit 143e6ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lightning/src/routing/router.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ impl<G: Deref<Target = NetworkGraph<L>> + Clone, L: Deref, S: Deref, SP: Sized,
124124
.map(|(info, source)| (source, *scid, info))
125125
)
126126
.filter(|(source, _, _)| **source != recipient_node_id)
127+
.filter(|(source, _, _)| network_graph
128+
.node(source)
129+
.and_then(|info| info.announcement_info.as_ref())
130+
.map(|info| info.features.supports_route_blinding())
131+
.unwrap_or(false)
132+
)
127133
.filter(|(_, _, info)| amount_msats >= info.direction().htlc_minimum_msat)
128134
.filter(|(_, _, info)| amount_msats <= info.direction().htlc_maximum_msat)
129135
.map(move |(source, scid, info)| (source, scid, info, details))

0 commit comments

Comments
 (0)