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

Function opt_set_network

devtools/gossipwith.c:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static char *opt_set_network(const char *arg, void *unused)
73{
74 assert(arg != NULL);
75
76 /* Set the global chainparams instance */
77 chainparams = chainparams_for_network(arg);
78 if (!chainparams)
79 return tal_fmt(NULL, "Unknown network name '%s'", arg);
80 explicit_network = true;
81 return NULL;
82}
83
84static bool opt_show_network(char *buf, size_t len, const void *unused)
85{

Callers

nothing calls this directly

Calls 1

chainparams_for_networkFunction · 0.85

Tested by

no test coverage detected