diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-10-16 15:56:10 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-10-16 15:56:10 +0200 |
commit | eab97f38f37cd42da5d4508e083c7f70eba39163 (patch) | |
tree | 95ae80992a151d98a3c88b79c2ea0445b339ce56 | |
parent | 794701404cb832ad09ad2aa6365ab584e8b16c02 (diff) |
try using macro to comment out legacy logic
-rw-r--r-- | src/testing/testing_api_cmd_post_transfers.c | 11 |
1 files 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 index 3bfd6948..e036576c 100644 --- 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); |