aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-01-12 16:57:51 +0100
committerFlorian Dold <florian@dold.me>2023-01-12 16:57:51 +0100
commit1e378e4499906e466e933e40464727fb1c1cbf5e (patch)
tree49f01bfe3a505208f1463e00f9bbe77f15a9d0cd /packages/taler-wallet-core/src/util
parent24694eae736763ea6e026c8839b7ba119db10bb4 (diff)
downloadwallet-core-1e378e4499906e466e933e40464727fb1c1cbf5e.tar.xz
wallet-core: retries for peer pull payments
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r--packages/taler-wallet-core/src/util/retries.ts13
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/util/retries.ts b/packages/taler-wallet-core/src/util/retries.ts
index 300875db7..d72d3adaa 100644
--- a/packages/taler-wallet-core/src/util/retries.ts
+++ b/packages/taler-wallet-core/src/util/retries.ts
@@ -30,6 +30,7 @@ import {
BackupProviderRecord,
DepositGroupRecord,
ExchangeRecord,
+ PeerPullPaymentInitiationRecord,
PeerPushPaymentInitiationRecord,
PurchaseRecord,
RecoupGroupRecord,
@@ -204,13 +205,21 @@ export namespace RetryTags {
export function forPeerPushPaymentInitiation(
ppi: PeerPushPaymentInitiationRecord,
): string {
- return `${PendingTaskType.PeerPushOutgoing}:${ppi.pursePub}`;
+ return `${PendingTaskType.PeerPushInitiation}:${ppi.pursePub}`;
+ }
+ export function forPeerPullPaymentInitiation(
+ ppi: PeerPullPaymentInitiationRecord,
+ ): string {
+ return `${PendingTaskType.PeerPullInitiation}:${ppi.pursePub}`;
}
export function byPaymentProposalId(proposalId: string): string {
return `${PendingTaskType.Purchase}:${proposalId}`;
}
export function byPeerPushPaymentInitiationPursePub(pursePub: string): string {
- return `${PendingTaskType.PeerPushOutgoing}:${pursePub}`;
+ return `${PendingTaskType.PeerPushInitiation}:${pursePub}`;
+ }
+ export function byPeerPullPaymentInitiationPursePub(pursePub: string): string {
+ return `${PendingTaskType.PeerPullInitiation}:${pursePub}`;
}
}