diff options
Diffstat (limited to 'packages/taler-harness/src/bench2.ts')
-rw-r--r-- | packages/taler-harness/src/bench2.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/taler-harness/src/bench2.ts b/packages/taler-harness/src/bench2.ts index c85bd6a5d..90924caec 100644 --- a/packages/taler-harness/src/bench2.ts +++ b/packages/taler-harness/src/bench2.ts @@ -27,6 +27,7 @@ import { } from "@gnu-taler/taler-util"; import { createPlatformHttpLib } from "@gnu-taler/taler-util/http"; import { + applyRunConfigDefaults, CryptoDispatcher, SynchronousCryptoWorkerFactoryPlain, Wallet, @@ -67,6 +68,8 @@ export async function runBench2(configJson: any): Promise<void> { const reserveAmount = (numDeposits + 1) * 10; + const defaultConfig = applyRunConfigDefaults(); + for (let i = 0; i < numIter; i++) { const exchangeInfo = await downloadExchangeInfo(benchConf.exchange, http); @@ -89,7 +92,7 @@ export async function runBench2(configJson: any): Promise<void> { console.log("reserve found"); const d1 = findDenomOrThrow(exchangeInfo, `${curr}:8` as AmountString, { - denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate, + denomselAllowLate: defaultConfig.testing.denomselAllowLate, }); for (let j = 0; j < numDeposits; j++) { @@ -118,10 +121,10 @@ export async function runBench2(configJson: any): Promise<void> { const refreshDenoms = [ findDenomOrThrow(exchangeInfo, `${curr}:1` as AmountString, { - denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate, + denomselAllowLate: defaultConfig.testing.denomselAllowLate, }), findDenomOrThrow(exchangeInfo, `${curr}:1` as AmountString, { - denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate, + denomselAllowLate: defaultConfig.testing.denomselAllowLate, }), ]; |