wallet-core: remove waiting-for-retry and some other notifications that we don't use
This commit is contained in:
parent
1ee9ef80bd
commit
b1ce901df2
@ -41,7 +41,6 @@ export enum NotificationType {
|
||||
ReserveCreated = "reserve-created",
|
||||
WithdrawGroupCreated = "withdraw-group-created",
|
||||
WithdrawGroupFinished = "withdraw-group-finished",
|
||||
WaitingForRetry = "waiting-for-retry",
|
||||
RefundStarted = "refund-started",
|
||||
RefundQueried = "refund-queried",
|
||||
ExchangeOperationError = "exchange-operation-error",
|
||||
@ -65,7 +64,6 @@ export enum NotificationType {
|
||||
KycRequested = "kyc-requested",
|
||||
WithdrawalGroupBankConfirmed = "withdrawal-group-bank-confirmed",
|
||||
WithdrawalGroupReserveReady = "withdrawal-group-reserve-ready",
|
||||
PeerPullCreditReady = "peer-pull-credit-ready",
|
||||
DepositOperationError = "deposit-operation-error",
|
||||
TransactionStateTransition = "transaction-state-transition",
|
||||
}
|
||||
@ -149,15 +147,6 @@ export interface WithdrawalGroupReserveReadyNotification {
|
||||
transactionId: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The purse creation of a peer-pull-credit transaction
|
||||
* is done, and the other party can now pay.
|
||||
*/
|
||||
export interface PeerPullCreditReadyNotification {
|
||||
type: NotificationType.PeerPullCreditReady;
|
||||
transactionId: string;
|
||||
}
|
||||
|
||||
export interface RefreshRevealedNotification {
|
||||
type: NotificationType.RefreshRevealed;
|
||||
}
|
||||
@ -184,13 +173,6 @@ export interface WithdrawalGroupFinishedNotification {
|
||||
reservePub: string;
|
||||
}
|
||||
|
||||
export interface WaitingForRetryNotification {
|
||||
type: NotificationType.WaitingForRetry;
|
||||
numPending: number;
|
||||
numGivingLiveness: number;
|
||||
numDue: number;
|
||||
}
|
||||
|
||||
export interface ExchangeAddedNotification {
|
||||
type: NotificationType.ExchangeAdded;
|
||||
}
|
||||
@ -309,7 +291,6 @@ export type WalletNotification =
|
||||
| ReserveCreatedNotification
|
||||
| ReserveConfirmedNotification
|
||||
| WithdrawalGroupFinishedNotification
|
||||
| WaitingForRetryNotification
|
||||
| RefundStartedNotification
|
||||
| RefundQueriedNotification
|
||||
| WithdrawalGroupCreatedNotification
|
||||
@ -325,5 +306,4 @@ export type WalletNotification =
|
||||
| KycRequestedNotification
|
||||
| WithdrawalGroupBankConfirmed
|
||||
| WithdrawalGroupReserveReadyNotification
|
||||
| PeerPullCreditReadyNotification
|
||||
| TransactionStateTransitionNotification;
|
||||
|
@ -436,12 +436,6 @@ async function runTaskLoop(
|
||||
);
|
||||
logger.trace(`waiting for at most ${dt.d_ms} ms`);
|
||||
const timeout = ws.timerGroup.resolveAfter(dt);
|
||||
ws.notify({
|
||||
type: NotificationType.WaitingForRetry,
|
||||
numGivingLiveness,
|
||||
numDue,
|
||||
numPending: pending.pendingOperations.length,
|
||||
});
|
||||
// Wait until either the timeout, or we are notified (via the latch)
|
||||
// that more work might be available.
|
||||
await Promise.race([timeout, ws.workAvailable.wait()]);
|
||||
|
Loading…
Reference in New Issue
Block a user