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

Function fmt_channel_view

common/initial_channel.c:185–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185static 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! */
196static char *fmt_channel(const tal_t *ctx, const struct channel *channel)

Callers 1

fmt_channelFunction · 0.85

Calls 1

type_to_stringClass · 0.70

Tested by

no test coverage detected