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") { } else if (args.cryptoworker.impl === "none") {
cryptoApi = nativeCrypto; cryptoApi = nativeCrypto;
} else { } else {
throw Error("invalid impl"); throw Error(`invalid crypto worker type ${args.cryptoworker.impl}`);
} }
const input = "foo"; const input = "foo";

View File

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

View File

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