aboutsummaryrefslogtreecommitdiff
path: root/src/wallet-impl/reserves.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-06 02:52:16 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-06 02:52:16 +0100
commit4159367d8c04b96a05da8a5ded043f8296a83174 (patch)
tree5587538fb13aead06d639a03e96cc09adcd99dd7 /src/wallet-impl/reserves.ts
parentd8170c815913b4395febc4ce3402fe45ba0d2e87 (diff)
downloadwallet-core-4159367d8c04b96a05da8a5ded043f8296a83174.tar.xz
pending ops / history / notification tweaks
Diffstat (limited to 'src/wallet-impl/reserves.ts')
-rw-r--r--src/wallet-impl/reserves.ts5
1 files changed, 5 insertions, 0 deletions
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");