[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: sort is done after candidate
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: sort is done after candidate selection |
Date: |
Mon, 15 Mar 2021 13:45:27 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 42a4d666 sort is done after candidate selection
42a4d666 is described below
commit 42a4d666f42ce94274995bfdae644444ff5f6d53
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Mar 15 13:45:24 2021 +0100
sort is done after candidate selection
---
packages/taler-wallet-core/src/operations/pay.ts | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/packages/taler-wallet-core/src/operations/pay.ts
b/packages/taler-wallet-core/src/operations/pay.ts
index cdacb2eb..1f8c4eb8 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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: sort is done after candidate selection,
gnunet <=