[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: do specify refund_delay in cont
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: do specify refund_delay in contract |
Date: |
Sat, 10 Apr 2021 23:58:52 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new cc184ef do specify refund_delay in contract
cc184ef is described below
commit cc184effd9dea1dcda94d62d7b1dc86f891cafef
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Apr 10 23:58:49 2021 +0200
do specify refund_delay in contract
---
src/backend/anastasis-httpd_truth.c | 4 +++-
src/reducer/anastasis_api_backup_redux.c | 3 +++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/backend/anastasis-httpd_truth.c
b/src/backend/anastasis-httpd_truth.c
index 6a94ce8..4dd3f26 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -712,12 +712,14 @@ begin_payment (struct GetContext *gc)
pay_deadline = GNUNET_TIME_relative_to_absolute (
ANASTASIS_CHALLENGE_OFFER_LIFETIME);
GNUNET_TIME_round_abs (&pay_deadline);
- order = json_pack ("{s:o, s:s, s:s, s:o, s:o}",
+ order = json_pack ("{s:o, s:s, s:s, s:o, s:o, s:o}",
"amount", TALER_JSON_from_amount (&gc->challenge_cost),
"summary", "challenge fee for anastasis service",
"order_id", order_id,
"auto_refund", GNUNET_JSON_from_time_rel (
AUTO_REFUND_TIMEOUT),
+ "refund_delay", GNUNET_JSON_from_time_rel (
+ AUTO_REFUND_TIMEOUT),
"pay_deadline", GNUNET_JSON_from_time_abs (
pay_deadline));
gc->po = TALER_MERCHANT_orders_post2 (AH_ctx,
diff --git a/src/reducer/anastasis_api_backup_redux.c
b/src/reducer/anastasis_api_backup_redux.c
index cf78978..b4fcd55 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -180,6 +180,9 @@ add_authentication (json_t *state,
NULL, NULL))
{
GNUNET_break (0);
+ json_dumpf (method,
+ stderr,
+ JSON_INDENT (2));
ANASTASIS_redux_fail_ (cb,
cb_cls,
TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: do specify refund_delay in contract,
gnunet <=