aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-07 17:41:16 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-07 17:41:16 +0200
commit77143566119591e86c8919b021d11bfe22fb32c7 (patch)
tree9cd44937ebe9d801a8778b36a7a87a444b151212 /src
parent11703131a36784b225c9a92cf1e9533b924e9a87 (diff)
first steps in refreshing in benchmark
Diffstat (limited to 'src')
-rw-r--r--src/benchmark/taler-exchange-benchmark.c12
1 files changed, 11 insertions, 1 deletions
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
@@ -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);
+ }
}