default exchange
This commit is contained in:
parent
ac8f116780
commit
17e627c2f0
@ -214,6 +214,8 @@ const builtinAuditors: AuditorTrustRecord[] = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const builtinExchanges: string[] = ["https://exchange.demo.taler.net/"];
|
||||||
|
|
||||||
const logger = new Logger("wallet.ts");
|
const logger = new Logger("wallet.ts");
|
||||||
|
|
||||||
async function getWithdrawalDetailsForAmount(
|
async function getWithdrawalDetailsForAmount(
|
||||||
@ -453,6 +455,9 @@ async function fillDefaults(ws: InternalWalletState): Promise<void> {
|
|||||||
for (const c of builtinAuditors) {
|
for (const c of builtinAuditors) {
|
||||||
await tx.auditorTrustStore.put(c);
|
await tx.auditorTrustStore.put(c);
|
||||||
}
|
}
|
||||||
|
for (const url of builtinExchanges) {
|
||||||
|
await updateExchangeFromUrl(ws, url, { forceNow: true });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user