We do this replication manually because it's an array. */
| 490 | |
| 491 | /* We do this replication manually because it's an array. */ |
| 492 | static void json_add_sat_only(struct json_stream *result, |
| 493 | const char *fieldname, |
| 494 | struct amount_sat sat) |
| 495 | { |
| 496 | struct amount_msat msat; |
| 497 | |
| 498 | if (amount_sat_to_msat(&msat, sat)) |
| 499 | json_add_string(result, fieldname, |
| 500 | type_to_string(tmpctx, struct amount_msat, &msat)); |
| 501 | } |
| 502 | |
| 503 | /* Fee a commitment transaction would currently cost */ |
| 504 | static struct amount_sat commit_txfee(const struct channel *channel, |
no test coverage detected