aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_deposit.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-06-28 10:38:42 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-06-28 10:38:42 +0200
commit48cccb62ca8ccd27216c6d42b2eee5e4689a7922 (patch)
tree0bb1cada690ab781fa3b6d92868e47d4052d143c /src/exchange-lib/testing_api_cmd_deposit.c
parentf033320300081607fd8f8861324ea1fc8fa2efd1 (diff)
Reproducing [1] as a test case.
[1] https://gnunet.org/bugs/view.php?id=5366#c13087
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_deposit.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_deposit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/exchange-lib/testing_api_cmd_deposit.c b/src/exchange-lib/testing_api_cmd_deposit.c
index d5c0542a..07895c1f 100644
--- a/src/exchange-lib/testing_api_cmd_deposit.c
+++ b/src/exchange-lib/testing_api_cmd_deposit.c
@@ -225,6 +225,9 @@ deposit_run (void *cls,
ds->merchant_priv.eddsa_priv = *merchant_priv;
GNUNET_free (merchant_priv);
+ /* FIXME: this looks very odd: why take times as relatives,
+ * just to convert them to absolutes soon after? */
+
if (0 != ds->refund_deadline.rel_value_us)
{
refund_deadline = GNUNET_TIME_relative_to_absolute