update /keys every 15 minutes

This commit is contained in:
Florian Dold 2017-05-01 04:09:52 +02:00
parent 4c03a1200e
commit 41ed276f3a
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -293,6 +293,10 @@ function setTimeout(f: any, t: number) {
return chrome.extension.getBackgroundPage().setTimeout(f, t);
}
function setInterval(f: any, t: number) {
return chrome.extension.getBackgroundPage().setInterval(f, t);
}
function isWithdrawableDenom(d: DenominationRecord) {
const now_sec = (new Date).getTime() / 1000;
@ -521,6 +525,8 @@ export class Wallet {
this.fillDefaults();
this.resumePendingFromDb();
setInterval(() => this.updateExchanges(), 1000 * 60 * 15);
}
private async fillDefaults() {