| 1614 | } |
| 1615 | |
| 1616 | static bool jsonfmt_amount_sat(struct command *cmd, |
| 1617 | struct json_stream *js, |
| 1618 | const char *fieldname, |
| 1619 | struct amount_sat *sats) |
| 1620 | { |
| 1621 | /* We do not expose raw numbers for sats fields: raw numbers |
| 1622 | * in our interface means MSAT! */ |
| 1623 | json_add_str_fmt(js, fieldname, "%"PRIu64"sat", sats->satoshis /* Raw: fmt */); |
| 1624 | return true; |
| 1625 | } |
| 1626 | |
| 1627 | static char *option_lease_fee_base(struct command *cmd, const char *arg, |
| 1628 | bool check_only, |
nothing calls this directly
no test coverage detected