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

Function handle_opts

lightningd/options.c:1889–1905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1887}
1888
1889void handle_opts(struct lightningd *ld)
1890{
1891 /* Now we know all the options, finish parsing and finish
1892 * populating ld->configvars with cmdline. */
1893 parse_configvars_final(ld->configvars, true, ld->developer);
1894
1895 /* We keep a separate variable rather than overriding always_use_proxy,
1896 * so listconfigs shows the correct thing. */
1897 if (tal_count(ld->proposed_wireaddr) != 0
1898 && all_tor_addresses(ld->proposed_wireaddr)) {
1899 ld->pure_tor_setup = true;
1900 if (!ld->proxyaddr)
1901 log_info(ld->log, "Pure Tor setup with no --proxy:"
1902 " you won't be able to make connections out");
1903 }
1904 check_config(ld);
1905}
1906
1907/* Canonicalize value they've given */
1908bool opt_canon_bool(const char *val)

Callers 1

mainFunction · 0.70

Calls 4

parse_configvars_finalFunction · 0.85
all_tor_addressesFunction · 0.85
log_infoClass · 0.85
check_configFunction · 0.85

Tested by

no test coverage detected