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

Function param_funder_opt

plugins/funder.c:1276–1292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1274}
1275
1276static struct command_result *
1277param_funder_opt(struct command *cmd, const char *name,
1278 const char *buffer, const jsmntok_t *tok,
1279 enum funder_opt **opt)
1280{
1281 char *opt_str, *err;
1282
1283 *opt = tal(cmd, enum funder_opt);
1284 opt_str = tal_strndup(cmd, buffer + tok->start,
1285 tok->end - tok->start);
1286
1287 err = funding_option(cmd, opt_str, false, *opt);
1288 if (err)
1289 return command_fail_badparam(cmd, name, buffer, tok, err);
1290
1291 return NULL;
1292}
1293
1294
1295static struct command_result *

Callers

nothing calls this directly

Calls 2

funding_optionFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected