From 77143566119591e86c8919b021d11bfe22fb32c7 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 7 Jun 2016 17:41:16 +0200 Subject: first steps in refreshing in benchmark --- src/benchmark/taler-exchange-benchmark.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index d9c0a3f1c..939fc58ec 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -77,6 +77,12 @@ struct Coin { */ const struct TALER_EXCHANGE_DenomPublicKey *pk; + /** + * Array of denomination keys needed in case this coin is to be + * refreshed + */ + const struct TALER_EXCHANGE_DenomPublicKey **refresh_pk; + /** * Set (by the interpreter) to the exchange's signature over the * coin's public key. @@ -187,7 +193,7 @@ static struct TALER_MerchantPrivateKeyP merchant_priv; * Used currency (to be preferably gotten via config file, together * exchange URI and other needed values) */ -#define CURRENCY "KUDOS" +#define CURRENCY "PUDOS" /** @@ -649,6 +655,10 @@ do_shutdown (void *cls) TALER_EXCHANGE_refresh_reveal_cancel(coins[i].rrh); coins[i].rmh = NULL; } + if (NULL != coins[i].refresh_pk) + { + GNUNET_free (coins[i].refresh_pk); + } } -- cgit v1.2.3