| 500 | } |
| 501 | |
| 502 | static struct command_result *param_msat_as_sat(struct command *cmd, |
| 503 | const char *name, |
| 504 | const char *buffer, |
| 505 | const jsmntok_t *tok, |
| 506 | struct amount_sat **sat) |
| 507 | { |
| 508 | struct amount_msat msat; |
| 509 | |
| 510 | *sat = tal(cmd, struct amount_sat); |
| 511 | if (parse_amount_msat(&msat, buffer + tok->start, tok->end - tok->start) |
| 512 | && amount_msat_to_sat(*sat, msat)) |
| 513 | return NULL; |
| 514 | |
| 515 | return command_fail_badparam(cmd, name, buffer, tok, |
| 516 | "should be a millisatoshi amount"); |
| 517 | } |
| 518 | |
| 519 | static struct bitcoin_outpoint * |
| 520 | previously_reserved(struct bitcoin_outpoint **prev_outs, |
nothing calls this directly
no test coverage detected