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

Function param_opt_dynamic_config

lightningd/configs.c:304–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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