summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-29 19:34:31 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-29 19:34:31 +0200
commitbe27446f003e069ce79f94de27bfe1e272b94aca (patch)
tree6f36ee5c30f99035e8c9922ad5a842ec9f7cccdc /src/backend/taler-merchant-httpd_post-orders-ID-pay.c
parentb66dce246c0141fe6e5bb6dc800e12295c1cd4cd (diff)
downloadmerchant-be27446f003e069ce79f94de27bfe1e272b94aca.tar.gz
merchant-be27446f003e069ce79f94de27bfe1e272b94aca.tar.bz2
merchant-be27446f003e069ce79f94de27bfe1e272b94aca.zip
-update to work with latest exchange API change
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-pay.c')
-rw-r--r--src/backend/taler-merchant-httpd_post-orders-ID-pay.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
index 667f4ac2..b6790461 100644
--- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
+++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c
@@ -1132,8 +1132,6 @@ process_pay_with_exchange (
enum TALER_ErrorCode ec;
unsigned int http_status;
bool is_age_restricted_denom = false;
- struct TALER_AgeCommitmentHash ach = {0};
- struct TALER_AgeCommitmentHash *achp = NULL;
if (NULL != dc->dh)
continue; /* we were here before (can happen due to
@@ -1261,9 +1259,8 @@ AGE_FAIL:
/* Age restriction successfully verified!
* Calculate the hash of the age commitment. */
TALER_age_commitment_hash (&dc->age_commitment,
- &ach);
+ &dc->h_age_commitment);
GNUNET_free (dc->age_commitment.keys);
- achp = &ach;
}
else if (is_age_restricted_denom)
{
@@ -1284,8 +1281,6 @@ AGE_FAIL:
&denom_details->h_key)));
return;
}
-
- achp = &dc->h_age_commitment;
}
dc->deposit_fee = denom_details->fees.deposit;
@@ -1296,10 +1291,10 @@ AGE_FAIL:
{
struct TALER_EXCHANGE_CoinDepositDetail cdd = {
.amount = dc->amount_with_fee,
- .h_age_commitment = h_age_commitment,
.coin_pub = dc->coin_pub,
.coin_sig = dc->coin_sig,
- .denom_sig = dc->ub_sig
+ .denom_sig = dc->ub_sig,
+ .h_age_commitment = dc->h_age_commitment
};
struct TALER_EXCHANGE_DepositContractDetail dcd = {
.wire_deadline = pc->wire_transfer_deadline,