Browse Source

Don't advertise features we don't have in run-sphinx

ppa-0.6.1
practicalswift 7 years ago
committed by Christian Decker
parent
commit
ba4282f935
  1. 18
      common/test/run-sphinx.c

18
common/test/run-sphinx.c

@ -160,25 +160,16 @@ int main(int argc, char **argv)
{ {
setup_locale(); setup_locale();
bool generate = false, decode = false, unit = false; bool unit = false;
u8 assocdata[32];
memset(assocdata, 'B', sizeof(assocdata));
secp256k1_ctx = secp256k1_context_create( secp256k1_ctx = secp256k1_context_create(
SECP256K1_CONTEXT_VERIFY | SECP256K1_CONTEXT_SIGN); SECP256K1_CONTEXT_VERIFY | SECP256K1_CONTEXT_SIGN);
setup_tmpctx(); setup_tmpctx();
opt_register_noarg("--help|-h", opt_usage_and_exit, opt_register_noarg("--help|-h", opt_usage_and_exit,
"--generate <pubkey1> <pubkey2>... OR\n" "--unit\n"
"--decode <privkey>\n" "Run unit tests against test vectors",
"Either create an onion message, or decode one step",
"Print this message."); "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_register_noarg("--unit",
opt_set_bool, &unit, opt_set_bool, &unit,
"Run unit tests against test vectors"); "Run unit tests against test vectors");
@ -187,9 +178,6 @@ int main(int argc, char **argv)
if (unit) { if (unit) {
run_unit_tests(); run_unit_tests();
} else if (generate) {
} else if (decode) {
} }
secp256k1_context_destroy(secp256k1_ctx); secp256k1_context_destroy(secp256k1_ctx);
opt_free_table(); opt_free_table();

Loading…
Cancel
Save