gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-core] branch master updated: don't show wrong


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-core] branch master updated: don't show wrong balance
Date: Sun, 01 Sep 2019 22:59:51 +0200

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 82591a9b don't show wrong balance
82591a9b is described below

commit 82591a9ba9751336480ab429886c085786172ec4
Author: Florian Dold <address@hidden>
AuthorDate: Sun Sep 1 22:59:48 2019 +0200

    don't show wrong balance
---
 src/headless/helpers.ts | 4 ++--
 src/wallet.ts           | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/headless/helpers.ts b/src/headless/helpers.ts
index 6716ccef..49881d46 100644
--- a/src/headless/helpers.ts
+++ b/src/headless/helpers.ts
@@ -133,9 +133,9 @@ export async function getDefaultNodeWallet(
 
   const myBadge = new ConsoleBadge();
 
-  BridgeIDBFactory.enableTracing = true;
+  BridgeIDBFactory.enableTracing = false;
   const myBackend = new MemoryBackend();
-  myBackend.enableTracing = true;
+  myBackend.enableTracing = false;
 
   const storagePath = args.persistentStoragePath;
   if (storagePath) {
diff --git a/src/wallet.ts b/src/wallet.ts
index 1d231f2d..14ab4544 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -2230,10 +2230,13 @@ export class Wallet {
       if (!r.timestamp_confirmed) {
         return balance;
       }
+      let amount = Amounts.getZero(r.requested_amount.currency);
+      /*
       let amount = r.current_amount;
       if (!amount) {
         amount = r.requested_amount;
       }
+      */
       amount = Amounts.add(amount, r.precoin_amount).amount;
       if (Amounts.cmp(smallestWithdraw[r.exchange_base_url], amount) < 0) {
         addTo(balance, "pendingIncoming", amount, r.exchange_base_url);

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]