MCPcopy Create free account
hub / github.com/ElementsProject/lightning / fmt_channel_view

Function fmt_channel_view

common/initial_channel.c:230–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static 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! */
239char *fmt_channel(const tal_t *ctx, const struct channel *channel)

Callers 1

fmt_channelFunction · 0.85

Calls 1

fmt_amount_msatFunction · 0.70

Tested by

no test coverage detected