From 10efd87a8ebcddb75d784f111af534b9d6ea494b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 1 May 2017 04:33:47 +0200 Subject: store reservePub/blindingKey directly in coin --- src/wxBackend.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/wxBackend.ts') 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). -- cgit v1.2.3