| 435 | } |
| 436 | |
| 437 | static 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 | |
| 460 | static struct command_result *json_fundpsbt(struct command *cmd, |
| 461 | const char *buffer, |
nothing calls this directly
no test coverage detected