diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-01 04:09:52 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-01 04:09:52 +0200 |
commit | 41ed276f3aad355a8a2504759edf5b737922272e (patch) | |
tree | f334d1d1dc3eeb01c34aa1824323ff4df6b19a0f /src/wallet.ts | |
parent | 4c03a1200eb947a0ed13f78b46fd670601b8cb80 (diff) |
update /keys every 15 minutes
Diffstat (limited to 'src/wallet.ts')
-rw-r--r-- | src/wallet.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 63cd597ea..71dc1754b 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -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() { |