taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

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

-also check for revoked

Diffstat:
Mpackages/taler-wallet-core/src/db.ts | 2++
Mpackages/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 @@ -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 @@ -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!