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

Function channel_set_billboard

lightningd/channel.c:1260–1274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1258}
1259
1260void channel_set_billboard(struct channel *channel, bool perm, const char *str)
1261{
1262 const char **p;
1263
1264 if (perm)
1265 p = &channel->billboard.permanent[channel->state];
1266 else
1267 p = &channel->billboard.transient;
1268 *p = tal_free(*p);
1269
1270 if (str) {
1271 *p = tal_fmt(channel, "%s:%s", channel_state_name(channel), str);
1272 tal_free_if_taken(str);
1273 }
1274}
1275
1276static void channel_err(struct channel *channel, bool disconnect, const char *why)
1277{

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