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

Function param_reserve_num

wallet/reservation.c:437–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437static struct command_result *param_reserve_num(struct command *cmd,
438 const char *name,
439 const char *buffer,
440 const jsmntok_t *tok,
441 unsigned int **num)
442{
443 bool flag;
444
445 if (deprecated_apis) {
446 /* "reserve=true" means 6 hours */
447 if (json_to_bool(buffer, tok, &flag)) {
448 *num = tal(cmd, unsigned int);
449 if (flag)
450 **num = RESERVATION_DEFAULT;
451 else
452 **num = 0;
453 return NULL;
454 }
455 }
456
457 return param_number(cmd, name, buffer, tok, num);
458}
459
460static struct command_result *json_fundpsbt(struct command *cmd,
461 const char *buffer,

Callers

nothing calls this directly

Calls 2

json_to_boolFunction · 0.50
param_numberFunction · 0.50

Tested by

no test coverage detected