diff options
author | Sebastian <sebasjm@gmail.com> | 2023-04-24 13:13:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-04-24 13:13:20 -0300 |
commit | b3cdd3409e172843d43cace16592230478096338 (patch) | |
tree | d9b6a507f311ef54a0e76282f2fc03960d2e7146 /packages/taler-harness/src/bench2.ts | |
parent | 4889ae9c9b0d8ae31cc04478c18f2191bf668e26 (diff) | |
download | wallet-core-b3cdd3409e172843d43cace16592230478096338.tar.xz |
improved log, added allow-http flag and prevent thrott
Diffstat (limited to 'packages/taler-harness/src/bench2.ts')
-rw-r--r-- | packages/taler-harness/src/bench2.ts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/taler-harness/src/bench2.ts b/packages/taler-harness/src/bench2.ts index ff87da52a..48ac76b9f 100644 --- a/packages/taler-harness/src/bench2.ts +++ b/packages/taler-harness/src/bench2.ts @@ -34,6 +34,7 @@ import { findDenomOrThrow, refreshCoin, SynchronousCryptoWorkerFactoryPlain, + Wallet, withdrawCoin, } from "@gnu-taler/taler-wallet-core"; @@ -56,6 +57,7 @@ export async function runBench2(configJson: any): Promise<void> { const http = createPlatformHttpLib({ enableThrottling: false, + allowHttp: true, }); const numIter = benchConf.iterations ?? 1; @@ -84,7 +86,9 @@ export async function runBench2(configJson: any): Promise<void> { console.log("reserve found"); - const d1 = findDenomOrThrow(exchangeInfo, `${curr}:8`); + const d1 = findDenomOrThrow(exchangeInfo, `${curr}:8`, { + denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate, + }); for (let j = 0; j < numDeposits; j++) { console.log("withdrawing coin"); @@ -111,8 +115,12 @@ export async function runBench2(configJson: any): Promise<void> { }); const refreshDenoms = [ - findDenomOrThrow(exchangeInfo, `${curr}:1`), - findDenomOrThrow(exchangeInfo, `${curr}:1`), + findDenomOrThrow(exchangeInfo, `${curr}:1`, { + denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate, + }), + findDenomOrThrow(exchangeInfo, `${curr}:1`, { + denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate, + }), ]; console.log("refreshing coin"); |