summaryrefslogtreecommitdiff
path: root/src/operations/reserves.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-20 16:20:32 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-20 16:20:32 +0530
commitd331f8b8b66e52a645dedefa7b7c31740dc309dc (patch)
treeea531549f67b23371b11c1e27361adc6356a9647 /src/operations/reserves.ts
parenta2e7f216277bd8cb722b9662ed1d2d44f927de0d (diff)
downloadwallet-core-d331f8b8b66e52a645dedefa7b7c31740dc309dc.tar.gz
wallet-core-d331f8b8b66e52a645dedefa7b7c31740dc309dc.tar.bz2
wallet-core-d331f8b8b66e52a645dedefa7b7c31740dc309dc.zip
no more wildcard notifications
Diffstat (limited to 'src/operations/reserves.ts')
-rw-r--r--src/operations/reserves.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/operations/reserves.ts b/src/operations/reserves.ts
index 7dd97decb..365d6e221 100644
--- a/src/operations/reserves.ts
+++ b/src/operations/reserves.ts
@@ -336,7 +336,7 @@ async function registerReserveWithBank(
r.retryInfo = initRetryInfo();
return r;
});
- ws.notify({ type: NotificationType.Wildcard });
+ ws.notify({ type: NotificationType.ReserveRegisteredWithBank });
return processReserveBankStatus(ws, reservePub);
}
@@ -377,8 +377,6 @@ async function processReserveBankStatusImpl(
await statusResp.json(),
);
- ws.notify({ type: NotificationType.Wildcard });
-
if (status.selection_done) {
if (reserve.reserveStatus === ReserveRecordStatus.REGISTERING_BANK) {
await registerReserveWithBank(ws, reservePub);
@@ -420,7 +418,6 @@ async function processReserveBankStatusImpl(
});
await incrementReserveRetry(ws, reservePub, undefined);
}
- ws.notify({ type: NotificationType.Wildcard });
}
async function incrementReserveRetry(