always update /keys before autorefresh

This commit is contained in:
Florian Dold 2020-09-06 19:29:12 +05:30
parent 87749371dd
commit d0088323ce
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,8 @@ runTest(async (t: GlobalTestState) => {
merchant,
});
await wallet.runUntilDone();
let p: PendingOperationsResponse;
p = await wallet.getPendingOperations();

View File

@ -51,6 +51,7 @@ runTest(async (t: GlobalTestState) => {
await exchange.stop();
exchange.setTimetravel(timetravelDuration);
await exchange.keyup();
await exchange.start();
await exchange.pingUntilAvailable();

View File

@ -678,6 +678,7 @@ export async function autoRefresh(
ws: InternalWalletState,
exchangeBaseUrl: string,
): Promise<void> {
await updateExchangeFromUrl(ws, exchangeBaseUrl, true);
await ws.db.runWithWriteTransaction(
[
Stores.coins,