diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-01 04:33:47 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-01 04:33:47 +0200 |
commit | 10efd87a8ebcddb75d784f111af534b9d6ea494b (patch) | |
tree | b1ace802de482e2ea5d253d097d5f37c5ceb9eae /src/wxBackend.ts | |
parent | 41ed276f3aad355a8a2504759edf5b737922272e (diff) | |
download | wallet-core-10efd87a8ebcddb75d784f111af534b9d6ea494b.tar.xz |
store reservePub/blindingKey directly in coin
Diffstat (limited to 'src/wxBackend.ts')
-rw-r--r-- | src/wxBackend.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wxBackend.ts b/src/wxBackend.ts index 1588ec857..089526a43 100644 --- a/src/wxBackend.ts +++ b/src/wxBackend.ts @@ -259,6 +259,12 @@ function makeHandlers(db: IDBDatabase, } return wallet.refresh(detail.coinPub); }, + ["payback-coin"]: function (detail, sender) { + if (typeof detail.coinPub !== "string") { + return Promise.reject(Error("coinPub missing")); + } + return wallet.payback(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). |