MCPcopy Create free account
hub / github.com/ElementsProject/lightning / dev_register_opts

Function dev_register_opts

lightningd/options.c:778–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

776}
777
778static void dev_register_opts(struct lightningd *ld)
779{
780 /* We might want to debug plugins, which are started before normal
781 * option parsing */
782 clnopt_witharg("--dev-debugger=<subprocess>", OPT_EARLY|OPT_DEV,
783 opt_set_charp, opt_show_charp,
784 &ld->dev_debug_subprocess,
785 "Invoke gdb at start of <subprocess>");
786 clnopt_noarg("--dev-no-plugin-checksum", OPT_EARLY|OPT_DEV,
787 opt_set_bool,
788 &ld->dev_no_plugin_checksum,
789 "Don't checksum plugins to detect changes");
790 clnopt_noarg("--dev-builtin-plugins-unimportant", OPT_EARLY|OPT_DEV,
791 opt_set_bool,
792 &ld->plugins->dev_builtin_plugins_unimportant,
793 "Make builtin plugins unimportant so you can plugin stop them.");
794 clnopt_noarg("--dev-no-reconnect", OPT_DEV,
795 opt_set_invbool,
796 &ld->reconnect,
797 "Disable automatic reconnect-attempts by this node, but accept incoming");
798 clnopt_noarg("--dev-no-reconnect-private", OPT_DEV,
799 opt_set_invbool,
800 &ld->reconnect_private,
801 "Disable automatic reconnect-attempts to peers with private channel(s) only, but accept incoming");
802 clnopt_noarg("--dev-fast-reconnect", OPT_DEV,
803 opt_set_bool,
804 &ld->dev_fast_reconnect,
805 "Make max default reconnect delay 3 (not 300) seconds");
806 clnopt_noarg("--dev-reject-closing-fee", OPT_DEV,
807 opt_set_bool,
808 &ld->dev_reject_closing_fee,
809 "Reject every closing fee the peer offers, as if outside our limits");
810
811 clnopt_noarg("--dev-fail-on-subdaemon-fail", OPT_DEV,
812 opt_set_bool,
813 &ld->dev_subdaemon_fail, opt_hidden);
814 clnopt_witharg("--dev-disconnect=<filename>", OPT_DEV,
815 opt_subd_dev_disconnect,
816 NULL, ld, "File containing disconnection points");
817 clnopt_noarg("--dev-allow-localhost", OPT_DEV,
818 opt_set_bool,
819 &ld->dev_allow_localhost,
820 "Announce and allow announcments for localhost address");
821 clnopt_witharg("--dev-bitcoind-poll", OPT_DEV|OPT_SHOWINT,
822 opt_set_u32, opt_show_u32,
823 &ld->topology->poll_seconds,
824 "Time between polling for new transactions");
825 clnopt_noarg("--dev-fast-gossip", OPT_DEV,
826 opt_set_bool,
827 &ld->dev_fast_gossip,
828 "Make gossip broadcast 1 second, etc");
829 clnopt_noarg("--dev-fast-gossip-prune", OPT_DEV,
830 opt_set_bool,
831 &ld->dev_fast_gossip_prune,
832 "Make gossip pruning 120 seconds");
833 clnopt_witharg("--dev-force-privkey", OPT_DEV,
834 opt_force_privkey, NULL, ld,
835 "Force HSM to use this as node private key");

Callers 1

register_optsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected