| 589 | } |
| 590 | |
| 591 | void json_add_amount_sat_msat(struct json_stream *result, |
| 592 | const char *msatfieldname, |
| 593 | struct amount_sat sat) |
| 594 | { |
| 595 | struct amount_msat msat; |
| 596 | assert(strends(msatfieldname, "_msat")); |
| 597 | if (amount_sat_to_msat(&msat, sat)) |
| 598 | json_add_amount_msat_only(result, msatfieldname, msat); |
| 599 | } |
| 600 | |
| 601 | /* When I noticed that we were adding "XXXmsat" fields *not* ending in _msat */ |
| 602 | void json_add_amount_sats_deprecated(struct json_stream *result, |
no test coverage detected