[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/02: wallet-core: refresh transitions preserve use
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/02: wallet-core: refresh transitions preserve user-visible balance |
Date: |
Fri, 10 Jan 2025 12:06:04 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit e78d0f8e4dcb72d4d0df46845239dade8533885e
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Jan 10 12:05:48 2025 +0100
wallet-core: refresh transitions preserve user-visible balance
---
packages/taler-wallet-core/src/query.ts | 3 +++
packages/taler-wallet-core/src/refresh.ts | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/query.ts
b/packages/taler-wallet-core/src/query.ts
index b48db9c90..6d11bd150 100644
--- a/packages/taler-wallet-core/src/query.ts
+++ b/packages/taler-wallet-core/src/query.ts
@@ -599,9 +599,12 @@ function runTx<Arg, Res>(
const stack = Error("Failed transaction was started here.");
const unregisterOnCancelled = cancellationToken.onCancelled(() => {
+ logger.trace("aborting transaction due to cancellation");
tx.abort();
});
+ cancellationToken.throwIfCancelled();
+
return new Promise((resolve, reject) => {
let funResult: any = undefined;
let gotFunResult = false;
diff --git a/packages/taler-wallet-core/src/refresh.ts
b/packages/taler-wallet-core/src/refresh.ts
index c6934d4ee..54a29b24a 100644
--- a/packages/taler-wallet-core/src/refresh.ts
+++ b/packages/taler-wallet-core/src/refresh.ts
@@ -266,7 +266,7 @@ export class RefreshTransactionContext implements
TransactionContext {
return {
oldTxState,
newTxState,
- balanceEffect: BalanceEffect.None,
+ balanceEffect: BalanceEffect.PreserveUserVisible,
} satisfies TransitionInfo;
}
case TransitionResultType.Delete:
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.