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

Function fmt_channel

common/initial_channel.c:239–249  ·  view source on GitHub ↗

FIXME: This should reference HTLCs somehow, and feerates! */

Source from the content-addressed store, hash-verified

237
238/* FIXME: This should reference HTLCs somehow, and feerates! */
239char *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}

Callers 1

Calls 3

side_to_strFunction · 0.85
fmt_channel_viewFunction · 0.85
fmt_amount_satFunction · 0.70

Tested by

no test coverage detected