commit 7216095aebda9e924229b1cb430889856a4b3666
parent 3051f7f06358f5f25dcd35588f663672b266e0a5
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Mon, 6 Feb 2017 15:47:51 +0100
renaming (a little part of) /track/transfer handler
Diffstat:
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/RENAMING_NOTES.txt b/RENAMING_NOTES.txt
@@ -1,9 +1,7 @@
Files to be cleaned from the 'h/H_contract' presence.
-- track-transaction
-- track-transfer
-- postgres plugin
-- db testcase
- merchant service include
- pay lib
+- track-lib: references to H_contract to be removed.
+ especially when the logic reads JSON responses.
- lib testcase
diff --git a/src/backend/taler-merchant-httpd_track-transfer.c b/src/backend/taler-merchant-httpd_track-transfer.c
@@ -215,7 +215,7 @@ track_transfer_cleanup (struct TM_HandlerContext *hc)
*/
static void
check_transfer (void *cls,
- uint64_t transaction_id,
+ const char *transaction_id,
const struct TALER_CoinSpendPublicKeyP *coin_pub,
const struct TALER_Amount *amount_with_fee,
const struct TALER_Amount *deposit_fee,
@@ -237,14 +237,14 @@ check_transfer (void *cls,
rctx->check_transfer_result = GNUNET_SYSERR;
/* Build the `TrackTransferConflictDetails` */
rctx->response
- = TMH_RESPONSE_make_json_pack ("{s:I, s:s, s:o, s:I, s:o, s:o, s:I, s:o, s:o}",
+ = TMH_RESPONSE_make_json_pack ("{s:I, s:s, s:o, s:I, s:o, s:o, s:s, s:o, s:o}",
"code", (json_int_t) TALER_EC_TRACK_TRANSFER_CONFLICTING_REPORTS,
"hint", "disagreement about deposit valuation",
"exchange_deposit_proof", exchange_proof,
"conflict_offset", (json_int_t) rctx->current_offset,
"exchange_transfer_proof", rctx->original_response,
"coin_pub", GNUNET_JSON_from_data_auto (coin_pub),
- "transaction_id", (json_int_t) transaction_id,
+ "transaction_id", transaction_id,
"amount_with_fee", TALER_JSON_from_amount (amount_with_fee),
"deposit_fee", TALER_JSON_from_amount (deposit_fee));
return;