| 183 | } |
| 184 | |
| 185 | static char *fmt_channel_view(const tal_t *ctx, const struct channel_view *view) |
| 186 | { |
| 187 | return tal_fmt(ctx, "{ owed_local=%s," |
| 188 | " owed_remote=%s }", |
| 189 | type_to_string(tmpctx, struct amount_msat, |
| 190 | &view->owed[LOCAL]), |
| 191 | type_to_string(tmpctx, struct amount_msat, |
| 192 | &view->owed[REMOTE])); |
| 193 | } |
| 194 | |
| 195 | /* FIXME: This should reference HTLCs somehow, and feerates! */ |
| 196 | static char *fmt_channel(const tal_t *ctx, const struct channel *channel) |
no test coverage detected