They give msats, we want sats */
| 361 | |
| 362 | /* They give msats, we want sats */ |
| 363 | static bool json_to_msat_as_sats(const char *buffer, const jsmntok_t *tok, |
| 364 | struct amount_sat *sat) |
| 365 | { |
| 366 | struct amount_msat msat; |
| 367 | if (!json_to_msat(buffer, tok, &msat)) |
| 368 | return false; |
| 369 | return amount_msat_to_sat(sat, msat); |
| 370 | } |
| 371 | |
| 372 | static struct command_result *param_msat_as_sat(struct command *cmd, |
| 373 | const char *name, |
nothing calls this directly
no test coverage detected