summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-06-10 16:32:37 +0200
committerFlorian Dold <florian@dold.me>2021-06-10 16:32:37 +0200
commit8ad36d89f55783c34043ee9ef37759cd94bcec7c (patch)
tree1e638b45e59ef50985f799b57590032a57ac7049 /packages/taler-wallet-core/src/util
parent7b7e3b4565169835ad04062d5c76ba655abd770a (diff)
downloadwallet-core-8ad36d89f55783c34043ee9ef37759cd94bcec7c.tar.gz
wallet-core-8ad36d89f55783c34043ee9ef37759cd94bcec7c.tar.bz2
wallet-core-8ad36d89f55783c34043ee9ef37759cd94bcec7c.zip
simplify pending transactions, make more tests pass again
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r--packages/taler-wallet-core/src/util/contractTerms.ts2
-rw-r--r--packages/taler-wallet-core/src/util/retries.ts5
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/util/contractTerms.ts b/packages/taler-wallet-core/src/util/contractTerms.ts
index cf61cc05f..5fb23cf8c 100644
--- a/packages/taler-wallet-core/src/util/contractTerms.ts
+++ b/packages/taler-wallet-core/src/util/contractTerms.ts
@@ -121,7 +121,6 @@ export namespace ContractTermsUtil {
* to forgettable fields and other restrictions for forgettable JSON.
*/
export function validateForgettable(anyJson: any): boolean {
- console.warn("calling validateForgettable", anyJson);
if (typeof anyJson === "string") {
return true;
}
@@ -206,7 +205,6 @@ export namespace ContractTermsUtil {
}
}
} else {
- console.warn("invalid type");
return false;
}
}
diff --git a/packages/taler-wallet-core/src/util/retries.ts b/packages/taler-wallet-core/src/util/retries.ts
index 54bb0b2ee..a7f4cd281 100644
--- a/packages/taler-wallet-core/src/util/retries.ts
+++ b/packages/taler-wallet-core/src/util/retries.ts
@@ -81,10 +81,11 @@ export function initRetryInfo(
retryCounter: 0,
};
}
+ const now = getTimestampNow();
const info = {
- firstTry: getTimestampNow(),
+ firstTry: now,
active: true,
- nextRetry: { t_ms: 0 },
+ nextRetry: now,
retryCounter: 0,
};
updateRetryInfoTimeout(info, p);