exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit d81a6c7cf22fecb03ea7857b2c6bc2156b2a2ebc
parent 41acdf11b8869bb261a63891c029487ccae25d35
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sat,  5 Feb 2022 00:12:58 +0100

-work on reveal

Diffstat:
Msrc/lib/exchange_api_refreshes_reveal.c | 13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/lib/exchange_api_refreshes_reveal.c b/src/lib/exchange_api_refreshes_reveal.c @@ -323,6 +323,7 @@ TALER_EXCHANGE_refreshes_reveal ( struct TALER_TransferPublicKeyP transfer_pub; char arg_str[sizeof (struct TALER_RefreshCommitmentP) * 2 + 32]; + GNUNET_assert (num_coins == rd->fresh_pks_len); if (noreveal_index >= TALER_CNC_KAPPA) { /* We check this here, as it would be really bad to below just @@ -339,9 +340,10 @@ TALER_EXCHANGE_refreshes_reveal ( return NULL; } if (GNUNET_OK != - TALER_EXCHANGE_get_melt_data (ps, - rd, - &md)) + TALER_EXCHANGE_get_melt_data_ (ps, + rd, + alg_values, + &md)) { GNUNET_break (0); return NULL; @@ -457,8 +459,6 @@ TALER_EXCHANGE_refreshes_reveal ( } /* finally, we can actually issue the request */ rrh = GNUNET_new (struct TALER_EXCHANGE_RefreshesRevealHandle); - rrh->exchange_vals = GNUNET_new_array (struct TALER_ExchangeWithdrawValues, - md.num_fresh_coins); rrh->exchange = exchange; rrh->noreveal_index = noreveal_index; rrh->reveal_cb = reveal_cb; @@ -511,9 +511,8 @@ TALER_EXCHANGE_refreshes_reveal_cancel ( } GNUNET_free (rrh->url); TALER_curl_easy_post_finished (&rrh->ctx); - TALER_EXCHANGE_free_melt_data_ (rrh->md); /* does not free 'md' itself */ + TALER_EXCHANGE_free_melt_data_ (&rrh->md); GNUNET_free (rrh->exchange_vals); - GNUNET_free (rrh->md); GNUNET_free (rrh); }