This commit is contained in:
Christian Grothoff 2020-01-18 18:09:15 +01:00
parent 8715e2b284
commit b3ff66d057
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -508,8 +508,7 @@ TALER_TESTING_cmd_deposit (const char *label,
NULL); NULL);
if (NULL == ds->contract_terms) if (NULL == ds->contract_terms)
{ {
GNUNET_log GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
(GNUNET_ERROR_TYPE_ERROR,
"Failed to parse contract terms `%s' for CMD `%s'\n", "Failed to parse contract terms `%s' for CMD `%s'\n",
contract_terms, contract_terms,
label); label);
@ -518,14 +517,14 @@ TALER_TESTING_cmd_deposit (const char *label,
ds->timestamp = GNUNET_TIME_absolute_get (); ds->timestamp = GNUNET_TIME_absolute_get ();
(void) GNUNET_TIME_round_abs (&ds->timestamp); (void) GNUNET_TIME_round_abs (&ds->timestamp);
json_object_set (ds->contract_terms, json_object_set_new (ds->contract_terms,
"timestamp", "timestamp",
GNUNET_JSON_from_time_abs (ds->timestamp)); GNUNET_JSON_from_time_abs (ds->timestamp));
if (0 != refund_deadline.rel_value_us) if (0 != refund_deadline.rel_value_us)
{ {
ds->refund_deadline = GNUNET_TIME_relative_to_absolute (refund_deadline); ds->refund_deadline = GNUNET_TIME_relative_to_absolute (refund_deadline);
(void) GNUNET_TIME_round_abs (&ds->refund_deadline); (void) GNUNET_TIME_round_abs (&ds->refund_deadline);
json_object_set (ds->contract_terms, json_object_set_new (ds->contract_terms,
"refund_deadline", "refund_deadline",
GNUNET_JSON_from_time_abs (ds->refund_deadline)); GNUNET_JSON_from_time_abs (ds->refund_deadline));
} }