| 228 | } |
| 229 | |
| 230 | static char *fmt_channel_view(const tal_t *ctx, const struct channel_view *view) |
| 231 | { |
| 232 | return tal_fmt(ctx, "{ owed_local=%s," |
| 233 | " owed_remote=%s }", |
| 234 | fmt_amount_msat(tmpctx, view->owed[LOCAL]), |
| 235 | fmt_amount_msat(tmpctx, view->owed[REMOTE])); |
| 236 | } |
| 237 | |
| 238 | /* FIXME: This should reference HTLCs somehow, and feerates! */ |
| 239 | char *fmt_channel(const tal_t *ctx, const struct channel *channel) |
no test coverage detected