gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: wallet-core: report coins in


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: report coins in dump-coins even when withdrawal transaction was deleted
Date: Tue, 14 Feb 2023 12:30:53 +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 97fac057c wallet-core: report coins in dump-coins even when withdrawal 
transaction was deleted
97fac057c is described below

commit 97fac057c2f66cf8c00e50c555b761d5062fb4cf
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Feb 14 12:30:44 2023 +0100

    wallet-core: report coins in dump-coins even when withdrawal transaction 
was deleted
---
 packages/taler-wallet-core/src/wallet.ts | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/packages/taler-wallet-core/src/wallet.ts 
b/packages/taler-wallet-core/src/wallet.ts
index 57ae85c1c..a57c71bcf 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -910,7 +910,7 @@ async function dumpCoins(ws: InternalWalletState): 
Promise<CoinDumpJson> {
           c.denomPubHash,
         ]);
         if (!denom) {
-          console.error("no denom session found for coin");
+          logger.warn("no denom found for coin");
           continue;
         }
         const cs = c.coinSource;
@@ -920,12 +920,7 @@ async function dumpCoins(ws: InternalWalletState): 
Promise<CoinDumpJson> {
         }
         let withdrawalReservePub: string | undefined;
         if (cs.type == CoinSourceType.Withdraw) {
-          const ws = await tx.withdrawalGroups.get(cs.withdrawalGroupId);
-          if (!ws) {
-            console.error("no withdrawal session found for coin");
-            continue;
-          }
-          withdrawalReservePub = ws.reservePub;
+          withdrawalReservePub = cs.reservePub;
         }
         const denomInfo = await ws.getDenomInfo(
           ws,
@@ -934,7 +929,7 @@ async function dumpCoins(ws: InternalWalletState): 
Promise<CoinDumpJson> {
           c.denomPubHash,
         );
         if (!denomInfo) {
-          console.error("no denomination found for coin");
+          logger.warn("no denomination found for coin");
           continue;
         }
         coinsJson.coins.push({

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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