diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-01-28 03:58:21 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-01-28 03:58:21 +0100 |
commit | 46d9cc367bdc9bf8cda7ae12e78ea0a2e0853d36 (patch) | |
tree | ff13f79a4c570c1fe63050665e3c3398dc6d9a11 /src/mint-lib | |
parent | 4506b4878ffb4f827cd0be0ab7587ed3654edd0d (diff) | |
download | exchange-46d9cc367bdc9bf8cda7ae12e78ea0a2e0853d36.tar.gz exchange-46d9cc367bdc9bf8cda7ae12e78ea0a2e0853d36.tar.bz2 exchange-46d9cc367bdc9bf8cda7ae12e78ea0a2e0853d36.zip |
finishing core logic for #4141, but untested
Diffstat (limited to 'src/mint-lib')
-rw-r--r-- | src/mint-lib/mint_api_deposit_wtid.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mint-lib/mint_api_deposit_wtid.c b/src/mint-lib/mint_api_deposit_wtid.c index 50f9c55d8..d29f406e3 100644 --- a/src/mint-lib/mint_api_deposit_wtid.c +++ b/src/mint-lib/mint_api_deposit_wtid.c @@ -148,9 +148,7 @@ handle_deposit_wtid_finished (void *cls, const struct TALER_WireTransferIdentifierRawP *wtid = NULL; struct GNUNET_TIME_Absolute execution_time = GNUNET_TIME_UNIT_FOREVER_ABS; const struct TALER_Amount *coin_contribution = NULL; - const struct TALER_Amount *total_amount = NULL; struct TALER_Amount coin_contribution_s; - struct TALER_Amount total_amount_s; dwh->job = NULL; json = MAC_download_get_result (&dwh->db, @@ -166,7 +164,6 @@ handle_deposit_wtid_finished (void *cls, MAJ_spec_fixed_auto ("wtid", &dwh->depconf.wtid), MAJ_spec_absolute_time ("execution_time", &execution_time), MAJ_spec_amount ("coin_contribution", &coin_contribution_s), - MAJ_spec_amount ("total_amount", &total_amount_s), MAJ_spec_end }; @@ -183,9 +180,6 @@ handle_deposit_wtid_finished (void *cls, TALER_amount_hton (&dwh->depconf.coin_contribution, &coin_contribution_s); coin_contribution = &coin_contribution_s; - TALER_amount_hton (&dwh->depconf.total_amount, - &total_amount_s); - total_amount = &total_amount_s; if (GNUNET_OK != verify_deposit_wtid_signature_ok (dwh, json)) @@ -244,8 +238,7 @@ handle_deposit_wtid_finished (void *cls, json, wtid, execution_time, - coin_contribution, - total_amount); + coin_contribution); json_decref (json); TALER_MINT_deposit_wtid_cancel (dwh); } |