aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-03-15 13:45:24 +0100
committerFlorian Dold <florian@dold.me>2021-03-15 13:45:24 +0100
commit42a4d666f42ce94274995bfdae644444ff5f6d53 (patch)
tree0ae83a4ed83c1bd9c999e30661cefea6e192df36 /packages
parent44b1896b9ec8af72aa0eb25e8c89a4cc0c841766 (diff)
sort is done after candidate selection
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-core/src/operations/pay.ts10
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,