File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2746,8 +2746,8 @@ where L::Target: Logger {
2746
2746
} ) ;
2747
2747
for idx in 0 ..( selected_route. len ( ) - 1 ) {
2748
2748
if idx + 1 >= selected_route. len ( ) { break ; }
2749
- if iter_equal ( selected_route[ idx] . hops . iter ( ) . map ( |h| ( h. 0 . candidate . id ( ) , h. 0 . candidate . target ( ) ) ) ,
2750
- selected_route[ idx + 1 ] . hops . iter ( ) . map ( |h| ( h. 0 . candidate . id ( ) , h. 0 . candidate . target ( ) ) ) ) {
2749
+ if iter_equal ( selected_route[ idx ] . hops . iter ( ) . map ( |h| ( h. 0 . candidate . id ( ) , h. 0 . candidate . target ( ) ) ) ,
2750
+ selected_route[ idx + 1 ] . hops . iter ( ) . map ( |h| ( h. 0 . candidate . id ( ) , h. 0 . candidate . target ( ) ) ) ) {
2751
2751
let new_value = selected_route[ idx] . get_value_msat ( ) + selected_route[ idx + 1 ] . get_value_msat ( ) ;
2752
2752
selected_route[ idx] . update_value_and_recompute_fees ( new_value) ;
2753
2753
selected_route. remove ( idx + 1 ) ;
You can’t perform that action at this time.
0 commit comments