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

Function handle_opts

lightningd/options.c:1925–1941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1923}
1924
1925void handle_opts(struct lightningd *ld)
1926{
1927 /* Now we know all the options, finish parsing and finish
1928 * populating ld->configvars with cmdline. */
1929 parse_configvars_final(ld->configvars, true, ld->developer);
1930
1931 /* We keep a separate variable rather than overriding always_use_proxy,
1932 * so listconfigs shows the correct thing. */
1933 if (tal_count(ld->proposed_wireaddr) != 0
1934 && all_tor_addresses(ld->proposed_wireaddr)) {
1935 ld->pure_tor_setup = true;
1936 if (!ld->proxyaddr)
1937 log_info(ld->log, "Pure Tor setup with no --proxy:"
1938 " you won't be able to make connections out");
1939 }
1940 check_config(ld);
1941}
1942
1943/* Canonicalize value they've given */
1944bool 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