aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/transactions.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-05-24 15:07:29 +0200
committerFlorian Dold <florian@dold.me>2023-05-24 15:07:29 +0200
commit126e9e7457851d7d4293797c4c75cafea59f3444 (patch)
treeda8c69926f9013166c20babf280c02fcfdbb0af9 /packages/taler-wallet-core/src/operations/transactions.ts
parent7eef3f57d297a95c3ac933896d1a7c59b3f04085 (diff)
downloadwallet-core-126e9e7457851d7d4293797c4c75cafea59f3444.tar.xz
wallet-core: use/allow txids as tombstone
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/transactions.ts22
1 files changed, 3 insertions, 19 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts
index 647b9dd90..dba082854 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -24,7 +24,6 @@ import {
Logger,
NotificationType,
OrderShortInfo,
- PaymentStatus,
PeerContractTerms,
RefundInfoShort,
RefundPaymentInfo,
@@ -54,7 +53,6 @@ import {
WithdrawalGroupRecord,
WithdrawalRecordType,
WalletContractData,
- PeerPushPaymentInitiationStatus,
PeerPullPaymentIncomingStatus,
DepositElementStatus,
WithdrawalGroupStatus,
@@ -71,8 +69,6 @@ import { assertUnreachable } from "../util/assertUnreachable.js";
import { checkDbInvariant, checkLogicInvariant } from "../util/invariants.js";
import { constructTaskIdentifier, TaskIdentifiers } from "../util/retries.js";
import {
- constructTombstone,
- makeTombstoneId,
resetOperationTimeout,
runOperationWithErrorReporting,
TombstoneTag,
@@ -1625,12 +1621,7 @@ export async function deleteTransaction(
return;
}
await tx.refundGroups.delete(refundGroupId);
- await tx.tombstones.put({
- id: constructTombstone({
- tag: TombstoneTag.DeleteRefund,
- refundGroupId,
- }),
- });
+ await tx.tombstones.put({ id: transactionId });
});
return;
}
@@ -1645,12 +1636,7 @@ export async function deleteTransaction(
);
if (debit) {
await tx.peerPullPaymentIncoming.delete(peerPullPaymentIncomingId);
- await tx.tombstones.put({
- id: makeTombstoneId(
- TombstoneTag.DeletePeerPullDebit,
- peerPullPaymentIncomingId,
- ),
- });
+ await tx.tombstones.put({ id: transactionId });
}
});
@@ -1665,9 +1651,7 @@ export async function deleteTransaction(
const debit = await tx.peerPushPaymentInitiations.get(pursePub);
if (debit) {
await tx.peerPushPaymentInitiations.delete(pursePub);
- await tx.tombstones.put({
- id: makeTombstoneId(TombstoneTag.DeletePeerPushDebit, pursePub),
- });
+ await tx.tombstones.put({ id: transactionId });
}
});
return;