first steps in refreshing in benchmark

This commit is contained in:
Marcello Stanisci 2016-06-07 17:41:16 +02:00
parent 11703131a3
commit 7714356611

View File

@ -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);
}
}