gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: -also check for revoked


From: gnunet
Subject: [taler-wallet-core] branch master updated: -also check for revoked
Date: Mon, 19 Sep 2022 12:21:06 +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 f1f332e0a -also check for revoked
f1f332e0a is described below

commit f1f332e0a6e10d380df0c60580ca37f91d394a60
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Sep 19 12:21:00 2022 +0200

    -also check for revoked
---
 packages/taler-wallet-core/src/db.ts             | 2 ++
 packages/taler-wallet-core/src/operations/pay.ts | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/packages/taler-wallet-core/src/db.ts 
b/packages/taler-wallet-core/src/db.ts
index 4fac0f9aa..1275b0cf2 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -293,6 +293,8 @@ export interface DenominationRecord {
    * Was this denomination still offered by the exchange the last time
    * we checked?
    * Only false when the exchange redacts a previously published denomination.
+   * 
+   * FIXME: Consider rolling this and isRevoked into some bitfield?
    */
   isOffered: boolean;
 
diff --git a/packages/taler-wallet-core/src/operations/pay.ts 
b/packages/taler-wallet-core/src/operations/pay.ts
index bc8cb3768..18be0fe65 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -960,7 +960,7 @@ export async function selectCandidates(
             denomAvail.denomPubHash,
           ]);
           checkDbInvariant(!!denom);
-          if (!denom.isOffered) {
+          if (denom.isRevoked || !denom.isOffered) {
             continue;
           }
           // FIXME: validation status and isOffered!

-- 
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]