| 556 | } |
| 557 | |
| 558 | void json_add_amount_msat_compat(struct json_stream *result, |
| 559 | struct amount_msat msat, |
| 560 | const char *rawfieldname, |
| 561 | const char *msatfieldname) |
| 562 | { |
| 563 | if (deprecated_apis) |
| 564 | json_add_u64(result, rawfieldname, msat.millisatoshis); /* Raw: low-level helper */ |
| 565 | json_add_amount_msat_only(result, msatfieldname, msat); |
| 566 | } |
| 567 | |
| 568 | void json_add_amount_msat_only(struct json_stream *result, |
| 569 | const char *msatfieldname, |
no test coverage detected