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

Function channel_set_billboard

lightningd/channel.c:1248–1262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1246}
1247
1248void channel_set_billboard(struct channel *channel, bool perm, const char *str)
1249{
1250 const char **p;
1251
1252 if (perm)
1253 p = &channel->billboard.permanent[channel->state];
1254 else
1255 p = &channel->billboard.transient;
1256 *p = tal_free(*p);
1257
1258 if (str) {
1259 *p = tal_fmt(channel, "%s:%s", channel_state_name(channel), str);
1260 tal_free_if_taken(str);
1261 }
1262}
1263
1264static void channel_err(struct channel *channel, bool disconnect, const char *why)
1265{

Callers 3

dualopend_tell_depthFunction · 0.85
onchain_errorFunction · 0.85
peer_closing_completeFunction · 0.85

Calls 3

tal_freeFunction · 0.85
tal_free_if_takenFunction · 0.85
channel_state_nameFunction · 0.70

Tested by

no test coverage detected