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: only pay with co


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: only pay with coins of offered denominations
Date: Mon, 19 Sep 2022 12:20:04 +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 e4679fba5 wallet-core: only pay with coins of offered denominations
e4679fba5 is described below

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

    wallet-core: only pay with coins of offered denominations
---
 packages/taler-wallet-core/src/operations/pay.ts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/packages/taler-wallet-core/src/operations/pay.ts 
b/packages/taler-wallet-core/src/operations/pay.ts
index fb22d0fad..bc8cb3768 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -960,6 +960,10 @@ export async function selectCandidates(
             denomAvail.denomPubHash,
           ]);
           checkDbInvariant(!!denom);
+          if (!denom.isOffered) {
+            continue;
+          }
+          // FIXME: validation status and isOffered!
           denoms.push({
             ...DenominationRecord.toDenomInfo(denom),
             numAvailable: denomAvail.freshCoinCount ?? 0,

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