mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-26 18:34:39 +01:00
Don't advertise features we don't have in run-sphinx
This commit is contained in:
committed by
Christian Decker
parent
b5682a773b
commit
ba4282f935
@@ -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 <pubkey1> <pubkey2>... OR\n"
|
||||
"--decode <privkey>\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();
|
||||
|
||||
Reference in New Issue
Block a user