summaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_refresh.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-04-13 13:11:54 +0200
committerChristian Grothoff <christian@grothoff.org>2015-04-13 13:11:54 +0200
commit9e9bad8dad9aacd3028e1baab76de36c8a5dbdc7 (patch)
tree95bb3ee1bd7f28d5f04f2e2259cb5a06a7c6e69c /src/mint/taler-mint-httpd_refresh.c
parentb69e3bf14b5ed73962daa9dfc3f0103b63038177 (diff)
downloadexchange-9e9bad8dad9aacd3028e1baab76de36c8a5dbdc7.tar.gz
exchange-9e9bad8dad9aacd3028e1baab76de36c8a5dbdc7.tar.bz2
exchange-9e9bad8dad9aacd3028e1baab76de36c8a5dbdc7.zip
distinguish active/old denomination keys (#3634)
Diffstat (limited to 'src/mint/taler-mint-httpd_refresh.c')
-rw-r--r--src/mint/taler-mint-httpd_refresh.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c
index 38af09d85..0f9dbfa0c 100644
--- a/src/mint/taler-mint-httpd_refresh.c
+++ b/src/mint/taler-mint-httpd_refresh.c
@@ -80,7 +80,8 @@ handle_refresh_melt_binary (struct MHD_Connection *connection,
for (i=0;i<num_new_denoms;i++)
{
dki = &TMH_KS_denomination_key_lookup (key_state,
- &denom_pubs[i])->issue;
+ &denom_pubs[i],
+ TMH_KS_DKU_WITHDRAW)->issue;
TALER_amount_ntoh (&value,
&dki->value);
TALER_amount_ntoh (&fee_withdraw,
@@ -108,7 +109,8 @@ handle_refresh_melt_binary (struct MHD_Connection *connection,
/* calculate contribution of the i-th melt by subtracting
the fee; add the rest to the total_melt value */
dki = &TMH_KS_denomination_key_lookup (key_state,
- &coin_melt_details[i].coin_info.denom_pub)->issue;
+ &coin_melt_details[i].coin_info.denom_pub,
+ TMH_KS_DKU_DEPOSIT)->issue;
TALER_amount_ntoh (&fee_melt,
&dki->fee_refresh);
if (GNUNET_OK !=
@@ -234,7 +236,8 @@ verify_coin_public_info (struct MHD_Connection *connection,
key_state = TMH_KS_acquire ();
dki = TMH_KS_denomination_key_lookup (key_state,
- &melt_detail->coin_info.denom_pub);
+ &melt_detail->coin_info.denom_pub,
+ TMH_KS_DKU_DEPOSIT);
if (NULL == dki)
{
TMH_KS_release (key_state);