summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-14 15:58:25 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-06-14 15:58:25 +0200
commit7b9272d3e8cb4c540c876bc4e10875d45971214b (patch)
tree8e0f0ca1bff933f9bdfd551592c4cef8098d7fc6 /src
parent1a7619d54e0337939cef1b323af985e0f5ede515 (diff)
downloadexchange-7b9272d3e8cb4c540c876bc4e10875d45971214b.tar.gz
exchange-7b9272d3e8cb4c540c876bc4e10875d45971214b.tar.bz2
exchange-7b9272d3e8cb4c540c876bc4e10875d45971214b.zip
left=0 after successful reveal
Diffstat (limited to 'src')
-rw-r--r--src/benchmark/taler-exchange-benchmark.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c
index 83f20188..93df0ae0 100644
--- 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++)
{