diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-13 02:36:33 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-13 02:36:33 +0200 |
commit | e4cafe672d07781c4cfcfa3b9d0e062ce367646c (patch) | |
tree | 7ad8b213a898236dee02a140207af301e8d400e4 /lib/wallet/wxMessaging.ts | |
parent | 250069d86097a966366d21e447f6c3fcc70659bd (diff) |
manual refresh triggering
Diffstat (limited to 'lib/wallet/wxMessaging.ts')
-rw-r--r-- | lib/wallet/wxMessaging.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/wallet/wxMessaging.ts b/lib/wallet/wxMessaging.ts index b1916b4bc..2c69afc99 100644 --- a/lib/wallet/wxMessaging.ts +++ b/lib/wallet/wxMessaging.ts @@ -204,6 +204,12 @@ function makeHandlers(db: IDBDatabase, } return wallet.getPreCoins(detail.exchangeBaseUrl); }, + ["refresh-coin"]: function (detail, sender) { + if (typeof detail.coinPub !== "string") { + return Promise.reject(Error("coinPub missing")); + } + return wallet.refresh(detail.coinPub); + }, ["payment-failed"]: function (detail, sender) { // For now we just update exchanges (maybe the exchange did something // wrong and the keys were messed up). |