gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: show empty balance as soon as


From: gnunet
Subject: [taler-wallet-core] branch master updated: show empty balance as soon as we have a reserve
Date: Fri, 15 May 2020 13:43:36 +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 87f9e7b1 show empty balance as soon as we have a reserve
87f9e7b1 is described below

commit 87f9e7b1e3e4ed78440d3b5108cfa538768644f3
Author: Florian Dold <address@hidden>
AuthorDate: Fri May 15 17:13:30 2020 +0530

    show empty balance as soon as we have a reserve
---
 src/operations/balance.ts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/operations/balance.ts b/src/operations/balance.ts
index 6f913502..36971c39 100644
--- a/src/operations/balance.ts
+++ b/src/operations/balance.ts
@@ -73,6 +73,11 @@ export async function getBalancesInsideTransaction(
     byExchange: {},
   };
 
+  await tx.iter(Stores.reserves).forEach((r) => {
+    const z = Amounts.getZero(r.currency);
+    addTo(balanceStore, "available", z, r.exchangeBaseUrl);
+  });
+
   await tx.iter(Stores.coins).forEach((c) => {
     if (c.suspended) {
       return;
@@ -81,6 +86,7 @@ export async function getBalancesInsideTransaction(
       addTo(balanceStore, "available", c.currentAmount, c.exchangeBaseUrl);
     }
   });
+
   await tx.iter(Stores.refreshGroups).forEach((r) => {
     // Don't count finished refreshes, since the refresh already resulted
     // in coins being added to the wallet.

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



reply via email to

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