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

Function fmt_height_states

common/blockheight_states.c:149–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149char *fmt_height_states(const tal_t *ctx,
150 const struct height_states *states)
151{
152 char *ret = tal_strdup(ctx, "{");
153 for (enum htlc_state i = 0; i < ARRAY_SIZE(states->height); i++) {
154 if (states->height[i] != NULL)
155 tal_append_fmt(&ret, " %s:%u",
156 htlc_state_name(i),
157 *states->height[i]);
158 }
159 tal_append_fmt(&ret, " }");
160 return ret;
161}

Callers 2

send_commitFunction · 0.85
init_channelFunction · 0.85

Calls 2

tal_append_fmtFunction · 0.85
htlc_state_nameFunction · 0.70

Tested by

no test coverage detected