diff options
author | Florian Dold <florian@dold.me> | 2021-03-15 13:45:24 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-03-15 13:45:24 +0100 |
commit | 42a4d666f42ce94274995bfdae644444ff5f6d53 (patch) | |
tree | 0ae83a4ed83c1bd9c999e30661cefea6e192df36 | |
parent | 44b1896b9ec8af72aa0eb25e8c89a4cc0c841766 (diff) |
sort is done after candidate selection
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts index cdacb2eba..1f8c4eb84 100644 --- a/packages/taler-wallet-core/src/operations/pay.ts +++ b/packages/taler-wallet-core/src/operations/pay.ts @@ -335,16 +335,6 @@ export async function getCandidatePayCoins( } } - // Sort by available amount (descending), deposit fee (ascending) and - // denomPub (ascending) if deposit fee is the same - // (to guarantee deterministic results) - candidateCoins.sort( - (o1, o2) => - -Amounts.cmp(o1.availableAmount, o2.availableAmount) || - Amounts.cmp(o1.feeDeposit, o2.feeDeposit) || - strcmp(o1.denomPub, o2.denomPub), - ); - return { candidateCoins, wireFeesPerExchange, |