[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix amount format (how did th
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix amount format (how did this ever work before?) |
Date: |
Fri, 17 Jan 2020 22:25:36 +0100 |
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 9ad8c697 fix amount format (how did this ever work before?)
9ad8c697 is described below
commit 9ad8c69782b69e2565bf6cdcb8cca555fced1292
Author: Florian Dold <address@hidden>
AuthorDate: Fri Jan 17 22:25:33 2020 +0100
fix amount format (how did this ever work before?)
---
src/operations/pending.ts | 1 +
src/operations/refresh.ts | 9 ++++++++-
src/types/pending.ts | 6 ++++++
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/operations/pending.ts b/src/operations/pending.ts
index f3cca9f2..3ae44692 100644
--- a/src/operations/pending.ts
+++ b/src/operations/pending.ts
@@ -403,6 +403,7 @@ export async function getPendingOperations(
): Promise<PendingOperationsResponse> {
const resp: PendingOperationsResponse = {
nextRetryDelay: { d_ms: Number.MAX_SAFE_INTEGER },
+ onlyDue: onlyDue,
pendingOperations: [],
};
const now = getTimestampNow();
diff --git a/src/operations/refresh.ts b/src/operations/refresh.ts
index 87d81cb2..418ec046 100644
--- a/src/operations/refresh.ts
+++ b/src/operations/refresh.ts
@@ -236,11 +236,18 @@ async function refreshMelt(
denom_pub_hash: coin.denomPubHash,
denom_sig: coin.denomSig,
rc: refreshSession.hash,
- value_with_fee: refreshSession.amountRefreshInput,
+ value_with_fee: Amounts.toString(refreshSession.amountRefreshInput),
};
logger.trace("melt request:", meltReq);
const resp = await ws.http.postJson(reqUrl.href, meltReq);
if (resp.status !== 200) {
+ console.log(`got status ${resp.status} for refresh/melt`);
+ try {
+ const respJson = await resp.json();
+ console.log(`body of refresh/melt error response:`,
JSON.stringify(respJson, undefined, 2));
+ } catch (e) {
+ console.log(`body of refresh/melt error response is not JSON`);
+ }
throw Error(`unexpected status code ${resp.status} for refresh/melt`);
}
diff --git a/src/types/pending.ts b/src/types/pending.ts
index f3979ac8..15299dec 100644
--- a/src/types/pending.ts
+++ b/src/types/pending.ts
@@ -177,4 +177,10 @@ export interface PendingOperationInfoCommon {
export interface PendingOperationsResponse {
pendingOperations: PendingOperationInfo[];
nextRetryDelay: Duration;
+
+ /**
+ * Does this response only include pending operations that
+ * are due to be executed right now?
+ */
+ onlyDue: boolean;
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix amount format (how did this ever work before?),
gnunet <=