From 684c53e105e2d4b4e07811423e409ff4735e7297 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 8 Dec 2021 16:23:00 +0100 Subject: wallet-core: trust exchange for exchange benchmark --- packages/taler-wallet-core/src/operations/withdraw.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts') diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index ebab54686..48d308b60 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -777,10 +777,15 @@ export async function updateWithdrawalDenoms( denominations.length }) signature of ${denom.denomPubHash}`, ); - const valid = await ws.cryptoApi.isValidDenom( - denom, - exchangeDetails.masterPublicKey, - ); + let valid: boolean = false; + if (ws.insecureTrustExchange) { + valid = true; + } else { + valid = await ws.cryptoApi.isValidDenom( + denom, + exchangeDetails.masterPublicKey, + ); + } logger.trace(`Done validating ${denom.denomPubHash}`); if (!valid) { logger.warn( -- cgit v1.2.3