gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-wallet-webex] 01/02: fix tipping


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-webex] 01/02: fix tipping
Date: Sat, 09 Dec 2017 15:56:17 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-webex.

commit ee9adea89a5e8d0f33696e4e91967261f60b8f7b
Author: Florian Dold <address@hidden>
AuthorDate: Sat Dec 9 15:56:05 2017 +0100

    fix tipping
---
 src/wallet.ts | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/wallet.ts b/src/wallet.ts
index bd31d321..744eba16 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -1185,7 +1185,8 @@ export class Wallet {
         }
 
         if (tip.accepted) {
-          // Transactionall set coin to fresh.
+          console.log("untainting already accepted tip");
+          // Transactionally set coin to fresh.
           const mutateCoin = (c: CoinRecord) => {
             if (c.status === CoinStatus.TainedByTip) {
               c.status = CoinStatus.Fresh;
@@ -1325,7 +1326,7 @@ export class Wallet {
       denomSig,
       exchangeBaseUrl: pc.exchangeBaseUrl,
       reservePub: pc.reservePub,
-      status: CoinStatus.Fresh,
+      status: pc.isFromTip ? CoinStatus.TainedByTip : CoinStatus.Fresh,
     };
     return coin;
   }

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



reply via email to

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