FIXME: This should reference HTLCs somehow, and feerates! */
| 194 | |
| 195 | /* FIXME: This should reference HTLCs somehow, and feerates! */ |
| 196 | static char *fmt_channel(const tal_t *ctx, const struct channel *channel) |
| 197 | { |
| 198 | return tal_fmt(ctx, "{ funding=%s," |
| 199 | " opener=%s," |
| 200 | " local=%s," |
| 201 | " remote=%s }", |
| 202 | type_to_string(tmpctx, struct amount_sat, |
| 203 | &channel->funding_sats), |
| 204 | side_to_str(channel->opener), |
| 205 | fmt_channel_view(ctx, &channel->view[LOCAL]), |
| 206 | fmt_channel_view(ctx, &channel->view[REMOTE])); |
| 207 | } |
| 208 | /* Magic comment. */ |
| 209 | REGISTER_TYPE_TO_STRING(channel, fmt_channel); |
nothing calls this directly
no test coverage detected