diff options
author | Florian Dold <florian@dold.me> | 2023-06-02 16:03:07 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-02 16:03:07 +0200 |
commit | b1ce901df2e0c431f41e34e3e1bd88da45d7b254 (patch) | |
tree | ec9529c1c315b75521ac0918d5fa5e95f402175d /packages | |
parent | 1ee9ef80bddcc91a8e542ffc44cd23e056e751d4 (diff) | |
download | wallet-core-b1ce901df2e0c431f41e34e3e1bd88da45d7b254.tar.xz |
wallet-core: remove waiting-for-retry and some other notifications that we don't use
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-util/src/notifications.ts | 20 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 6 |
2 files changed, 0 insertions, 26 deletions
diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts index fb5c70c71..51b56c3fe 100644 --- a/packages/taler-util/src/notifications.ts +++ b/packages/taler-util/src/notifications.ts @@ -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; diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 953353164..df48c0e19 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -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()]); |