diff options
author | Florian Dold <florian@dold.me> | 2021-12-08 16:23:00 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-12-08 16:23:00 +0100 |
commit | 684c53e105e2d4b4e07811423e409ff4735e7297 (patch) | |
tree | 1497074e01b101d106ecfb8195f67fe45fc84c21 /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | 09aeaf753af3234462d42c1cc96037e726312a81 (diff) | |
download | wallet-core-684c53e105e2d4b4e07811423e409ff4735e7297.tar.xz |
wallet-core: trust exchange for exchange benchmark
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 13 |
1 files changed, 9 insertions, 4 deletions
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( |