commit e767a8063aedd2648745c08e8d4de0d32cd62e43
parent 22e224adc47db9f8ab9d51cfab90dbd6101633f6
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 14 Dec 2015 19:05:05 +0100
use global h_wire, instead of re-computing each time
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_contract.c b/src/backend/taler-merchant-httpd_contract.c
@@ -53,7 +53,6 @@ MH_handler_contract (struct TMH_RequestHandler *rh,
{
json_t *root;
int res;
- struct GNUNET_HashCode h_wire;
struct TALER_ContractPS contract;
struct GNUNET_CRYPTO_EddsaSignature contract_sig;
@@ -68,10 +67,6 @@ MH_handler_contract (struct TMH_RequestHandler *rh,
if ((GNUNET_NO == res) || (NULL == root))
return MHD_YES;
- if (GNUNET_OK != TALER_hash_json (j_wire, &h_wire))
- return TMH_RESPONSE_reply_internal_error (connection,
- "failed to hash wire details");
-
/* add fields to the "root" that the backend should provide */
json_object_set (root,
"mints",