[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: put 'setInsecureTrustExchange
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: put 'setInsecureTrustExchange' behind env variable in benchmark |
Date: |
Thu, 09 Dec 2021 12:00:15 +0100 |
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 423af144 put 'setInsecureTrustExchange' behind env variable in
benchmark
423af144 is described below
commit 423af144eeca3158fd714cf54710ea042b6a0031
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Dec 9 12:00:10 2021 +0100
put 'setInsecureTrustExchange' behind env variable in benchmark
---
packages/taler-wallet-cli/src/bench1.ts | 11 ++++++++++-
.../taler-wallet-core/src/crypto/workers/synchronousWorker.ts | 2 +-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-cli/src/bench1.ts
b/packages/taler-wallet-cli/src/bench1.ts
index c239a362..1a6a26b6 100644
--- a/packages/taler-wallet-cli/src/bench1.ts
+++ b/packages/taler-wallet-cli/src/bench1.ts
@@ -56,6 +56,13 @@ export async function runBench1(configJson: any):
Promise<void> {
`Starting Benchmark iterations=${numIter} deposits=${numDeposits}`,
);
+ const trustExchange = !!process.env["TALER_WALLET_INSECURE_TRUST_EXCHANGE"];
+ if (trustExchange) {
+ logger.info("trusting exchange (not validating signatures)");
+ } else {
+ logger.info("not trusting exchange (validating signatures)");
+ }
+
let wallet = {} as Wallet;
for (let i = 0; i < numIter; i++) {
@@ -71,7 +78,9 @@ export async function runBench1(configJson: any):
Promise<void> {
persistentStoragePath: undefined,
httpLib: myHttpLib,
});
- wallet.setInsecureTrustExchange();
+ if (trustExchange) {
+ wallet.setInsecureTrustExchange();
+ }
await wallet.client.call(WalletApiOperation.InitWallet, {});
}
diff --git a/packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts
b/packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts
index bfc7ee7a..9de28dbe 100644
--- a/packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts
+++ b/packages/taler-wallet-core/src/crypto/workers/synchronousWorker.ts
@@ -25,7 +25,7 @@ import { CryptoWorker } from "./cryptoWorkerInterface.js";
import child_process from "child_process";
import type internal from "stream";
import { OpenedPromise, openPromise } from "../../index.js";
-import { Logger } from "@gnu-taler/taler-util";
+import { j2s, Logger } from "@gnu-taler/taler-util";
const logger = new Logger("synchronousWorker.ts");
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: put 'setInsecureTrustExchange' behind env variable in benchmark,
gnunet <=