commit 7b9272d3e8cb4c540c876bc4e10875d45971214b
parent 1a7619d54e0337939cef1b323af985e0f5ede515
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Tue, 14 Jun 2016 15:58:25 +0200
left=0 after successful reveal
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c
@@ -57,7 +57,6 @@ static unsigned int nreserves;
*/
unsigned int ncoins;
-
/**
* Bank details of who creates reserves
*/
@@ -190,7 +189,6 @@ struct Coin {
};
-
/**
* Handle to the exchange's process
*/
@@ -413,9 +411,13 @@ reveal_cb (void *cls,
return;
}
else
+ {
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Coin #%d revealed!\n",
rrcls->coin_index);
+ coins[rrcls->coin_index].left.value = 0;
+ }
+
keys = TALER_EXCHANGE_get_keys (exchange);
for (i=0; i<num_coins; i++)
{