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 @@ -2747,8 +2747,8 @@ where L::Target: Logger {
2747
2747
} ) ;
2748
2748
for idx in 0 ..( selected_route. len ( ) - 1 ) {
2749
2749
if idx + 1 >= selected_route. len ( ) { break ; }
2750
- if iter_equal ( selected_route[ idx] . hops . iter ( ) . map ( |h| ( h. 0 . candidate . id ( ) , h. 0 . candidate . target ( ) ) ) ,
2751
- selected_route[ idx + 1 ] . hops . iter ( ) . map ( |h| ( h. 0 . candidate . id ( ) , h. 0 . candidate . target ( ) ) ) ) {
2750
+ if iter_equal ( selected_route[ idx ] . hops . iter ( ) . map ( |h| ( h. 0 . candidate . id ( ) , h. 0 . candidate . target ( ) ) ) ,
2751
+ selected_route[ idx + 1 ] . hops . iter ( ) . map ( |h| ( h. 0 . candidate . id ( ) , h. 0 . candidate . target ( ) ) ) ) {
2752
2752
let new_value = selected_route[ idx] . get_value_msat ( ) + selected_route[ idx + 1 ] . get_value_msat ( ) ;
2753
2753
selected_route[ idx] . update_value_and_recompute_fees ( new_value) ;
2754
2754
selected_route. remove ( idx + 1 ) ;
You can’t perform that action at this time.
0 commit comments