From d5d37b631495c60f2248ca51e065a452c71f567e Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Wed, 28 Sep 2022 15:39:24 +0200 Subject: 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. --- bench.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bench.c') 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 }; -- cgit v1.2.3