[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: also shepherd fa
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: also shepherd fake refresh transaction |
Date: |
Mon, 08 Apr 2024 14:38:52 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 0aeb79b84 wallet-core: also shepherd fake refresh transaction
0aeb79b84 is described below
commit 0aeb79b84d9347ba9642d0e2dccf1b20927b45e0
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Apr 8 14:38:26 2024 +0200
wallet-core: also shepherd fake refresh transaction
Otherwise it won't show up as failing when refreshes are blocked
via a different dev experiment.
---
packages/taler-wallet-core/src/dev-experiments.ts | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/dev-experiments.ts
b/packages/taler-wallet-core/src/dev-experiments.ts
index 7cf18e36c..db2ff5d06 100644
--- a/packages/taler-wallet-core/src/dev-experiments.ts
+++ b/packages/taler-wallet-core/src/dev-experiments.ts
@@ -39,6 +39,7 @@ import {
HttpRequestOptions,
HttpResponse,
} from "@gnu-taler/taler-util/http";
+import { PendingTaskType, constructTaskIdentifier } from "./common.js";
import {
DenomLossEventRecord,
DenomLossStatus,
@@ -77,8 +78,8 @@ export async function applyDevExperiment(
return;
}
case "insert-pending-refresh": {
+ const refreshGroupId = encodeCrock(getRandomBytes(32));
await wex.db.runReadWriteTx(["refreshGroups"], async (tx) => {
- const refreshGroupId = encodeCrock(getRandomBytes(32));
const newRg: RefreshGroupRecord = {
currency: "TESTKUDOS",
expectedOutputPerCoin: [],
@@ -95,6 +96,12 @@ export async function applyDevExperiment(
};
await tx.refreshGroups.put(newRg);
});
+ wex.taskScheduler.startShepherdTask(
+ constructTaskIdentifier({
+ tag: PendingTaskType.Refresh,
+ refreshGroupId,
+ }),
+ );
return;
}
case "insert-denom-loss": {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-core: also shepherd fake refresh transaction,
gnunet <=