commit eab97f38f37cd42da5d4508e083c7f70eba39163
parent 794701404cb832ad09ad2aa6365ab584e8b16c02
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 16 Oct 2020 15:56:10 +0200
try using macro to comment out legacy logic
Diffstat:
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/testing/testing_api_cmd_post_transfers.c b/src/testing/testing_api_cmd_post_transfers.c
@@ -152,11 +152,13 @@ transfers_cb (void *cls,
{
case MHD_HTTP_OK:
{
- // struct TALER_Amount total;
-
pts->execution_time = execution_time;
pts->wire_fee = *wire_fee;
- /*
+#if FIXME_WRITE_PROPPER_CHECK_OF_RETURNED_DATA_HERE
+ /* this code is some legacy logic that is close to what we
+ need but needs to be updated to the current API */
+ struct TALER_Amount total;
+
if (0 >
TALER_amount_subtract (&total,
total_amount,
@@ -283,7 +285,8 @@ transfers_cb (void *cls,
TALER_TESTING_interpreter_fail (pts->is);
return;
}
- */break;
+#endif
+ break;
}
default:
GNUNET_break (0);