From 5d3bfab13a189a5f8a94ccadf257a6a612e618dc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Jun 2020 23:52:30 +0200 Subject: add missing notifications to private-get-orders long poller --- src/backend/taler-merchant-httpd_private-post-transfers.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/backend/taler-merchant-httpd_private-post-transfers.c') diff --git a/src/backend/taler-merchant-httpd_private-post-transfers.c b/src/backend/taler-merchant-httpd_private-post-transfers.c index 23bb08e7..042825be 100644 --- a/src/backend/taler-merchant-httpd_private-post-transfers.c +++ b/src/backend/taler-merchant-httpd_private-post-transfers.c @@ -322,9 +322,9 @@ check_transfer (void *cls, GNUNET_JSON_from_data_auto (&ttd->coin_pub), "h_wire", GNUNET_JSON_from_data_auto (h_wire), - "exchange_sig", + "deposit_exchange_sig", GNUNET_JSON_from_data_auto (exchange_sig), - "exchange_pub", + "deposit_exchange_pub", GNUNET_JSON_from_data_auto (exchange_pub), /* first block of 5 */ "h_contract_terms", @@ -399,15 +399,12 @@ check_wire_fee (struct PostTransfersContext *ptc, return GNUNET_OK; /* expected_fee >= wire_fee */ } /* Wire fee check failed, export proof to client */ - /* FIXME: This is not actually the *full* proof, as we are - not including the exchange's bogus response with the - signature claiming a different wire fee. Also, this - error is not described in the API docs! */ ptc->response_code = MHD_HTTP_ACCEPTED; ptc->response = TALER_MHD_make_json_pack ( - "{s:I, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o}", + "{s:I, s:s, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o}", "code", (json_int_t) TALER_EC_POST_TRANSFERS_JSON_BAD_WIRE_FEE, + "hint", "exchange provided conflicting wire fee information", "wire_fee", TALER_JSON_from_amount (wire_fee), "execution_time", GNUNET_JSON_from_time_abs (execution_time), "expected_wire_fee", TALER_JSON_from_amount (&expected_fee), -- cgit v1.2.3