commit 77143566119591e86c8919b021d11bfe22fb32c7
parent 11703131a36784b225c9a92cf1e9533b924e9a87
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Tue, 7 Jun 2016 17:41:16 +0200
first steps in refreshing in benchmark
Diffstat:
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c
@@ -78,6 +78,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);
+ }
}