aboutsummaryrefslogtreecommitdiff
path: root/src/wxBackend.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-01 04:33:47 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-01 04:33:47 +0200
commit10efd87a8ebcddb75d784f111af534b9d6ea494b (patch)
treeb1ace802de482e2ea5d253d097d5f37c5ceb9eae /src/wxBackend.ts
parent41ed276f3aad355a8a2504759edf5b737922272e (diff)
downloadwallet-core-10efd87a8ebcddb75d784f111af534b9d6ea494b.tar.xz
store reservePub/blindingKey directly in coin
Diffstat (limited to 'src/wxBackend.ts')
-rw-r--r--src/wxBackend.ts6
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).