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

Function param_recurrence_base

plugins/offers_offer.c:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165static struct command_result *param_recurrence_base(struct command *cmd,
166 const char *name,
167 const char *buffer,
168 const jsmntok_t *tok,
169 struct recurrence_base **base)
170{
171 *base = tal(cmd, struct recurrence_base);
172 (*base)->proportional_amount = false;
173 if (!json_to_u64(buffer, tok, &(*base)->basetime))
174 return command_fail_badparam(cmd, name, buffer, tok,
175 "not a valid basetime");
176 return NULL;
177}
178
179
180/* -time+time */

Callers

nothing calls this directly

Calls 2

json_to_u64Function · 0.50
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected