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

Function handle_opts

lightningd/options.c:1885–1901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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