File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1270,13 +1270,14 @@ where L::Target: Logger {
1270
1270
// around again with a higher amount.
1271
1271
if !contributes_sufficient_value || exceeds_max_path_length ||
1272
1272
exceeds_cltv_delta_limit || payment_failed_on_this_channel {
1273
- if let Some ( first_hops) = first_hops { // for only first hop it will log feedback
1274
- for hop in first_hops {
1275
- let _channel_id = hop. channel_id;
1273
+ let target = first_hop_targets. get( & NodeId :: from_pubkey( & our_node_pubkey) ) . unwrap( ) ;
1274
+ for channel_details in target {
1275
+ if let Some ( short_channel_id_target) = channel_details. short_channel_id {
1276
+ if short_channel_id == short_channel_id_target {
1277
+ log_trace!( logger, "first Hop of node id {our_node_id} is excluded due to a failed requirement." ) ;
1278
+ }
1276
1279
}
1277
- log_trace!( logger, "first Hop is excluded because unfulfilling condition" ) ;
1278
- }
1279
- // Path isn't useful, ignore it and move on.
1280
+ }
1280
1281
} else if may_overpay_to_meet_path_minimum_msat {
1281
1282
hit_minimum_limit = true ;
1282
1283
} else if over_path_minimum_msat {
You can’t perform that action at this time.
0 commit comments