FIXME: This should reference HTLCs somehow, and feerates! */
| 237 | |
| 238 | /* FIXME: This should reference HTLCs somehow, and feerates! */ |
| 239 | char *fmt_channel(const tal_t *ctx, const struct channel *channel) |
| 240 | { |
| 241 | return tal_fmt(ctx, "{ funding=%s," |
| 242 | " opener=%s," |
| 243 | " local=%s," |
| 244 | " remote=%s }", |
| 245 | fmt_amount_sat(tmpctx, channel->funding_sats), |
| 246 | side_to_str(channel->opener), |
| 247 | fmt_channel_view(ctx, &channel->view[LOCAL]), |
| 248 | fmt_channel_view(ctx, &channel->view[REMOTE])); |
| 249 | } |
no test coverage detected