summaryrefslogtreecommitdiff
path: root/src/mint
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-17 23:38:00 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-17 23:38:00 +0200
commit51e0612f8ba656248c4902edd601965fb36cbc49 (patch)
treec86c9a424da18a673ff6b837fa811821d6f376ce /src/mint
parent1a0eb0307a664c0dcc7bdb8bc08cf7aaba4e7f3e (diff)
downloadexchange-51e0612f8ba656248c4902edd601965fb36cbc49.tar.gz
exchange-51e0612f8ba656248c4902edd601965fb36cbc49.tar.bz2
exchange-51e0612f8ba656248c4902edd601965fb36cbc49.zip
some DB logic fixes, so now more of tests pass
Diffstat (limited to 'src/mint')
-rw-r--r--src/mint/taler-mint-httpd_refresh.c3
-rw-r--r--src/mint/taler-mint-httpd_responses.c4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c
index f5bfb3c8b..b54b2010c 100644
--- a/src/mint/taler-mint-httpd_refresh.c
+++ b/src/mint/taler-mint-httpd_refresh.c
@@ -250,15 +250,12 @@ verify_coin_public_info (struct MHD_Connection *connection,
return TMH_RESPONSE_reply_arg_unknown (connection,
"denom_pub");
}
- /* FIXME: need to check if denomination key is still
- valid for issuing! (#3634) */
TALER_amount_ntoh (&fee_refresh,
&dki->issue.properties.fee_refresh);
melt_detail->melt_fee = fee_refresh;
body.purpose.size = htonl (sizeof (struct TALER_RefreshMeltCoinAffirmationPS));
body.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_COIN_MELT);
body.session_hash = *session_hash;
-
TALER_amount_hton (&body.amount_with_fee,
&melt_detail->melt_amount_with_fee);
TALER_amount_hton (&body.melt_fee,
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c
index 418bc1751..eb883b631 100644
--- a/src/mint/taler-mint-httpd_responses.c
+++ b/src/mint/taler-mint-httpd_responses.c
@@ -419,7 +419,7 @@ compile_transaction_history (const struct TALER_MINTDB_TransactionList *tl)
/* internal sanity check before we hand out a bogus sig... */
if (GNUNET_OK !=
- GNUNET_CRYPTO_eddsa_verify (ntohl (dr.purpose.purpose),
+ GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_WALLET_COIN_DEPOSIT,
&dr.purpose,
&deposit->csig.eddsa_signature,
&deposit->coin.coin_pub.eddsa_pub))
@@ -451,7 +451,7 @@ compile_transaction_history (const struct TALER_MINTDB_TransactionList *tl)
/* internal sanity check before we hand out a bogus sig... */
if (GNUNET_OK !=
- GNUNET_CRYPTO_eddsa_verify (ntohl (ms.purpose.purpose),
+ GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_WALLET_COIN_MELT,
&ms.purpose,
&melt->coin_sig.eddsa_signature,
&melt->coin.coin_pub.eddsa_pub))