From 4159367d8c04b96a05da8a5ded043f8296a83174 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 6 Dec 2019 02:52:16 +0100 Subject: pending ops / history / notification tweaks --- src/wallet-impl/reserves.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/wallet-impl/reserves.ts') diff --git a/src/wallet-impl/reserves.ts b/src/wallet-impl/reserves.ts index f00956b46..8a700bebc 100644 --- a/src/wallet-impl/reserves.ts +++ b/src/wallet-impl/reserves.ts @@ -342,6 +342,7 @@ async function incrementReserveRetry( r.lastError = err; await tx.put(Stores.reserves, r); }); + ws.notify({ type: NotificationType.ReserveOperationError }); } /** @@ -606,6 +607,10 @@ async function depleteReserve( if (success) { console.log("processing new withdraw session"); + ws.notify({ + type: NotificationType.WithdrawSessionCreated, + withdrawSessionId: withdrawalSessionId, + }); await processWithdrawSession(ws, withdrawalSessionId); } else { console.trace("withdraw session already existed"); -- cgit v1.2.3