From ba4282f935c86002c6ff8b6f49ef5d0503e2afe1 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 31 Jul 2018 12:04:22 +0200 Subject: [PATCH] Don't advertise features we don't have in run-sphinx --- common/test/run-sphinx.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/common/test/run-sphinx.c b/common/test/run-sphinx.c index f4f6cd2db..72a9d7b56 100644 --- a/common/test/run-sphinx.c +++ b/common/test/run-sphinx.c @@ -160,25 +160,16 @@ int main(int argc, char **argv) { setup_locale(); - bool generate = false, decode = false, unit = false; - u8 assocdata[32]; - memset(assocdata, 'B', sizeof(assocdata)); + bool unit = false; secp256k1_ctx = secp256k1_context_create( SECP256K1_CONTEXT_VERIFY | SECP256K1_CONTEXT_SIGN); setup_tmpctx(); opt_register_noarg("--help|-h", opt_usage_and_exit, - "--generate ... OR\n" - "--decode \n" - "Either create an onion message, or decode one step", + "--unit\n" + "Run unit tests against test vectors", "Print this message."); - opt_register_noarg("--generate", - opt_set_bool, &generate, - "Generate onion through the given hex pubkeys"); - opt_register_noarg("--decode", - opt_set_bool, &decode, - "Decode onion from stdin given the private key"); opt_register_noarg("--unit", opt_set_bool, &unit, "Run unit tests against test vectors"); @@ -187,9 +178,6 @@ int main(int argc, char **argv) if (unit) { run_unit_tests(); - } else if (generate) { - - } else if (decode) { } secp256k1_context_destroy(secp256k1_ctx); opt_free_table();