feat(wallet): disable complex routing (#20901)

This commit is contained in:
Brian Sztamfater 2024-07-29 12:47:35 -03:00 committed by GitHub
parent 1f5bb579c9
commit 11a84ba145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -504,6 +504,8 @@
(let [suggested-routes-new-data (data-store/rpc->suggested-routes data)
suggested-routes (-> suggested-routes-new-data
first
;; if route is multichain, we remove it
(update :best (fn [best] (if (> (count best) 1) [] best)))
(update :best #(map data-store/new->old-route-path %))
(update :candidates #(map data-store/new->old-route-path %)))]
{:fx [[:dispatch