always update /keys before autorefresh
This commit is contained in:
parent
87749371dd
commit
d0088323ce
@ -90,6 +90,8 @@ runTest(async (t: GlobalTestState) => {
|
|||||||
merchant,
|
merchant,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await wallet.runUntilDone();
|
||||||
|
|
||||||
let p: PendingOperationsResponse;
|
let p: PendingOperationsResponse;
|
||||||
p = await wallet.getPendingOperations();
|
p = await wallet.getPendingOperations();
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ runTest(async (t: GlobalTestState) => {
|
|||||||
|
|
||||||
await exchange.stop();
|
await exchange.stop();
|
||||||
exchange.setTimetravel(timetravelDuration);
|
exchange.setTimetravel(timetravelDuration);
|
||||||
|
await exchange.keyup();
|
||||||
await exchange.start();
|
await exchange.start();
|
||||||
await exchange.pingUntilAvailable();
|
await exchange.pingUntilAvailable();
|
||||||
|
|
||||||
|
@ -678,6 +678,7 @@ export async function autoRefresh(
|
|||||||
ws: InternalWalletState,
|
ws: InternalWalletState,
|
||||||
exchangeBaseUrl: string,
|
exchangeBaseUrl: string,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
|
await updateExchangeFromUrl(ws, exchangeBaseUrl, true);
|
||||||
await ws.db.runWithWriteTransaction(
|
await ws.db.runWithWriteTransaction(
|
||||||
[
|
[
|
||||||
Stores.coins,
|
Stores.coins,
|
||||||
|
Loading…
Reference in New Issue
Block a user