| 672 | } |
| 673 | |
| 674 | static void dev_register_opts(struct lightningd *ld) |
| 675 | { |
| 676 | /* We might want to debug plugins, which are started before normal |
| 677 | * option parsing */ |
| 678 | opt_register_early_arg("--dev-debugger=<subprocess>", opt_subprocess_debug, NULL, |
| 679 | ld, "Invoke gdb at start of <subprocess>"); |
| 680 | |
| 681 | opt_register_early_noarg("--dev-no-plugin-checksum", opt_set_bool, |
| 682 | &ld->dev_no_plugin_checksum, |
| 683 | "Don't checksum plugins to detect changes"); |
| 684 | |
| 685 | opt_register_noarg("--dev-no-reconnect", opt_set_invbool, |
| 686 | &ld->reconnect, |
| 687 | "Disable automatic reconnect-attempts by this node, but accept incoming"); |
| 688 | opt_register_noarg("--dev-fast-reconnect", opt_set_bool, |
| 689 | &ld->dev_fast_reconnect, |
| 690 | "Make max default reconnect delay 3 (not 300) seconds"); |
| 691 | |
| 692 | opt_register_noarg("--dev-fail-on-subdaemon-fail", opt_set_bool, |
| 693 | &ld->dev_subdaemon_fail, opt_hidden); |
| 694 | opt_register_arg("--dev-disconnect=<filename>", opt_subd_dev_disconnect, |
| 695 | NULL, ld, "File containing disconnection points"); |
| 696 | opt_register_noarg("--dev-allow-localhost", opt_set_bool, |
| 697 | &ld->dev_allow_localhost, |
| 698 | "Announce and allow announcments for localhost address"); |
| 699 | opt_register_arg("--dev-bitcoind-poll", opt_set_u32, opt_show_u32, |
| 700 | &ld->topology->poll_seconds, |
| 701 | "Time between polling for new transactions"); |
| 702 | |
| 703 | opt_register_noarg("--dev-fast-gossip", opt_set_bool, |
| 704 | &ld->dev_fast_gossip, |
| 705 | "Make gossip broadcast 1 second, etc"); |
| 706 | opt_register_noarg("--dev-fast-gossip-prune", opt_set_bool, |
| 707 | &ld->dev_fast_gossip_prune, |
| 708 | "Make gossip pruning 30 seconds"); |
| 709 | |
| 710 | opt_register_arg("--dev-gossip-time", opt_set_u32, opt_show_u32, |
| 711 | &ld->dev_gossip_time, |
| 712 | "UNIX time to override gossipd to use."); |
| 713 | opt_register_arg("--dev-force-privkey", opt_force_privkey, NULL, ld, |
| 714 | "Force HSM to use this as node private key"); |
| 715 | opt_register_arg("--dev-force-bip32-seed", opt_force_bip32_seed, NULL, ld, |
| 716 | "Force HSM to use this as bip32 seed"); |
| 717 | opt_register_arg("--dev-force-channel-secrets", opt_force_channel_secrets, NULL, ld, |
| 718 | "Force HSM to use these for all per-channel secrets"); |
| 719 | opt_register_arg("--dev-max-funding-unconfirmed-blocks", |
| 720 | opt_set_u32, opt_show_u32, |
| 721 | &ld->dev_max_funding_unconfirmed, |
| 722 | "Maximum number of blocks we wait for a channel " |
| 723 | "funding transaction to confirm, if we are the " |
| 724 | "fundee."); |
| 725 | opt_register_arg("--dev-force-tmp-channel-id", opt_force_tmp_channel_id, NULL, ld, |
| 726 | "Force the temporary channel id, instead of random"); |
| 727 | opt_register_noarg("--dev-no-htlc-timeout", opt_set_bool, |
| 728 | &ld->dev_no_htlc_timeout, |
| 729 | "Don't kill channeld if HTLCs not confirmed within 30 seconds"); |
| 730 | opt_register_noarg("--dev-fail-process-onionpacket", opt_set_bool, |
| 731 | &dev_fail_process_onionpacket, |