File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2130,15 +2130,16 @@ where L::Target: Logger {
2130
2130
IntroductionNode :: NodeId ( pubkey) => {
2131
2131
node_counters. node_counter_from_id ( & NodeId :: from_pubkey ( & pubkey) )
2132
2132
} ,
2133
- IntroductionNode :: DirectedShortChannelId ( _ , scid) => {
2133
+ IntroductionNode :: DirectedShortChannelId ( direction , scid) => {
2134
2134
let node_id = if let Some ( node_id) = path. public_introduction_node_id ( network_graph) {
2135
- Some ( node_id)
2135
+ Some ( * node_id)
2136
2136
} else {
2137
- first_hop_targets. iter ( ) . find ( |( _, channels) |
2137
+ let counterparty_opt = first_hop_targets. iter ( ) . find ( |( _, channels) |
2138
2138
channels
2139
2139
. iter ( )
2140
2140
. any ( |details| Some ( * scid) == details. get_outbound_payment_scid ( ) )
2141
- ) . map ( |( counterparty_node_id, _) | counterparty_node_id)
2141
+ ) . map ( |( counterparty_node_id, _) | counterparty_node_id) ;
2142
+ counterparty_opt. map ( |cp| direction. select_node_id ( our_node_id, * cp) )
2142
2143
} ;
2143
2144
match node_id {
2144
2145
Some ( node_id) => node_counters. node_counter_from_id ( & node_id) ,
You can’t perform that action at this time.
0 commit comments