File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2102,13 +2102,14 @@ where L::Target: Logger {
2102
2102
. filter ( |route| !route. 0 . is_empty ( ) )
2103
2103
{
2104
2104
let first_hop_in_route = & ( route. 0 ) [ 0 ] ;
2105
+ let first_hop_src_id = NodeId :: from_pubkey ( & first_hop_in_route. src_node_id ) ;
2105
2106
let have_hop_src_in_graph =
2106
2107
// Only add the hops in this route to our candidate set if either we are part of
2107
2108
// the first hop, we have a direct channel to the first hop, or the first hop is in
2108
2109
// the regular network graph.
2109
- our_node_id == NodeId :: from_pubkey ( & first_hop_in_route . src_node_id ) ||
2110
- first_hop_targets. get ( & NodeId :: from_pubkey ( & first_hop_in_route . src_node_id ) ) . is_some ( ) ||
2111
- network_nodes. get ( & NodeId :: from_pubkey ( & first_hop_in_route . src_node_id ) ) . is_some ( ) ;
2110
+ our_node_id == first_hop_src_id ||
2111
+ first_hop_targets. get ( & first_hop_src_id ) . is_some ( ) ||
2112
+ network_nodes. get ( & first_hop_src_id ) . is_some ( ) ;
2112
2113
if have_hop_src_in_graph {
2113
2114
// We start building the path from reverse, i.e., from payee
2114
2115
// to the first RouteHintHop in the path.
You can’t perform that action at this time.
0 commit comments