default exchange

This commit is contained in:
Sebastian 2022-08-16 12:59:17 -03:00
parent ac8f116780
commit 17e627c2f0
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -214,6 +214,8 @@ const builtinAuditors: AuditorTrustRecord[] = [
},
];
const builtinExchanges: string[] = ["https://exchange.demo.taler.net/"];
const logger = new Logger("wallet.ts");
async function getWithdrawalDetailsForAmount(
@ -453,6 +455,9 @@ async function fillDefaults(ws: InternalWalletState): Promise<void> {
for (const c of builtinAuditors) {
await tx.auditorTrustStore.put(c);
}
for (const url of builtinExchanges) {
await updateExchangeFromUrl(ws, url, { forceNow: true });
}
}
});
}