They give msats, we want sats */
| 491 | |
| 492 | /* They give msats, we want sats */ |
| 493 | static bool json_to_msat_as_sats(const char *buffer, const jsmntok_t *tok, |
| 494 | struct amount_sat *sat) |
| 495 | { |
| 496 | struct amount_msat msat; |
| 497 | if (!json_to_msat(buffer, tok, &msat)) |
| 498 | return false; |
| 499 | return amount_msat_to_sat(sat, msat); |
| 500 | } |
| 501 | |
| 502 | static struct command_result *param_msat_as_sat(struct command *cmd, |
| 503 | const char *name, |
nothing calls this directly
no test coverage detected