aboutsummaryrefslogtreecommitdiff
path: root/bench.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2022-09-28 15:39:24 +0200
committerÖzgür Kesim <oec@codeblau.de>2022-09-28 15:39:24 +0200
commitd5d37b631495c60f2248ca51e065a452c71f567e (patch)
tree4dd3fd5b63482f1c1ce2737ab10fbe12117db143 /bench.c
parenta6306bbc80b3c6e911ff915e7d6f4c3760da8e06 (diff)
Transcript generation and replay
test_brandt now generates transcripts of auctions in JSON form on stdout. replay is a program that reads such a transcript and replays the auction.
Diffstat (limited to 'bench.c')
-rw-r--r--bench.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bench.c b/bench.c
index a38dc93..55a3095 100644
--- a/bench.c
+++ b/bench.c
@@ -449,21 +449,21 @@ main (int argc, char *argv[])
uint16_t public;
uint16_t *bids = NULL;
struct GNUNET_GETOPT_CommandLineOption options[] = {
- GNUNET_GETOPT_OPTION_HELP ("benchmark a single libbrandt auction"),
+ GNUNET_GETOPT_option_help ("benchmark a single libbrandt auction"),
{'k', "k", "NUMBER",
gettext_noop ("number of prices\n"),
- 1, &GNUNET_GETOPT_set_uint, &k},
+ 1, &GNUNET_GETOPT_option_uint, &k},
{'n', "n", "NUMBER",
gettext_noop ("number of bidders\n"),
- 1, &GNUNET_GETOPT_set_uint, &n},
+ 1, &GNUNET_GETOPT_option_uint, &n},
{'m', "m", "NUMBER",
gettext_noop ("number of items to sell\n"
"0 for first price auction\n"
">0 for vickrey/M+1st price auction"),
- 1, &GNUNET_GETOPT_set_uint, &m},
+ 1, &GNUNET_GETOPT_option_uint, &m},
{'p', "public", NULL,
gettext_noop ("public auction outcome"),
- 0, &GNUNET_GETOPT_set_one, &public},
+ 0, &GNUNET_GETOPT_option_flag, &public},
GNUNET_GETOPT_OPTION_END
};