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

Function fmt_channel

common/initial_channel.c:196–207  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

194
195/* FIXME: This should reference HTLCs somehow, and feerates! */
196static char *fmt_channel(const tal_t *ctx, const struct channel *channel)
197{
198 return tal_fmt(ctx, "{ funding=%s,"
199 " opener=%s,"
200 " local=%s,"
201 " remote=%s }",
202 type_to_string(tmpctx, struct amount_sat,
203 &channel->funding_sats),
204 side_to_str(channel->opener),
205 fmt_channel_view(ctx, &channel->view[LOCAL]),
206 fmt_channel_view(ctx, &channel->view[REMOTE]));
207}
208/* Magic comment. */
209REGISTER_TYPE_TO_STRING(channel, fmt_channel);

Callers

nothing calls this directly

Calls 3

side_to_strFunction · 0.85
fmt_channel_viewFunction · 0.85
type_to_stringClass · 0.70

Tested by

no test coverage detected