This commit is contained in:
Florian Dold 2022-10-07 12:43:17 +02:00
parent 957f9a5efb
commit 1256c8704b
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 6 additions and 6 deletions

View File

@ -1412,7 +1412,7 @@ testCli
} else if (args.cryptoworker.impl === "none") {
cryptoApi = nativeCrypto;
} else {
throw Error("invalid impl");
throw Error(`invalid crypto worker type ${args.cryptoworker.impl}`);
}
const input = "foo";

View File

@ -505,7 +505,6 @@ export async function updateExchangeFromUrlHandler(
> {
const forceNow = options.forceNow ?? false;
logger.info(`updating exchange info for ${baseUrl}, forced: ${forceNow}`);
console.trace("here");
const now = AbsoluteTime.now();
baseUrl = canonicalizeBaseUrl(baseUrl);

View File

@ -589,9 +589,10 @@ async function fillDefaults(ws: InternalWalletState): Promise<void> {
const appliedRec = await tx.config.get("currencyDefaultsApplied");
let alreadyApplied = appliedRec ? !!appliedRec.value : false;
if (alreadyApplied) {
logger.info("defaults already applied");
logger.trace("defaults already applied");
return;
}
logger.info("importing default exchanges and auditors");
for (const c of builtinAuditors) {
await tx.auditorTrust.put(c);
}
@ -1120,12 +1121,12 @@ async function dispatchRequestInternal(
// definitions we already have?
switch (operation) {
case "initWallet": {
logger.info("initializing wallet");
logger.trace("initializing wallet");
ws.initCalled = true;
if (typeof payload === "object" && (payload as any).skipDefaults) {
logger.info("skipping defaults");
logger.trace("skipping defaults");
} else {
logger.info("filling defaults");
logger.trace("filling defaults");
await fillDefaults(ws);
}
return {};