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

Function chainparams_get_network_names

bitcoin/chainparams.c:266–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266const char *chainparams_get_network_names(const tal_t *ctx)
267{
268 char *networks_string = tal_strdup(ctx, networks[0].network_name);
269 for (size_t i = 1; i < ARRAY_SIZE(networks); ++i)
270 tal_append_fmt(&networks_string, ", %s", networks[i].network_name);
271 return networks_string;
272}
273
274int chainparams_get_ln_port(const struct chainparams *params)
275{

Callers 1

wallet_sanity_checkFunction · 0.85

Calls 1

tal_append_fmtFunction · 0.85

Tested by

no test coverage detected