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

Function param_opt_dynamic_config

lightningd/configs.c:303–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301AUTODATA(json_command, &listconfigs_command);
302
303static struct command_result *param_opt_dynamic_config(struct command *cmd,
304 const char *name,
305 const char *buffer,
306 const jsmntok_t *tok,
307 const struct opt_table **config)
308{
309 struct command_result *ret;
310
311 ret = param_opt_config(cmd, name, buffer, tok, config);
312 if (ret)
313 return ret;
314
315 if (!((*config)->type & OPT_DYNAMIC))
316 return command_fail_badparam(cmd, name, buffer, tok,
317 "Not a dynamic config option");
318 return NULL;
319}
320
321static void configvar_updated(struct lightningd *ld,
322 enum configvar_src src,

Callers

nothing calls this directly

Calls 2

param_opt_configFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected