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

Function channel_set_billboard

lightningd/channel.c:932–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930}
931
932void channel_set_billboard(struct channel *channel, bool perm, const char *str)
933{
934 const char **p;
935
936 if (perm)
937 p = &channel->billboard.permanent[channel->state];
938 else
939 p = &channel->billboard.transient;
940 *p = tal_free(*p);
941
942 if (str) {
943 *p = tal_fmt(channel, "%s:%s", channel_state_name(channel), str);
944 if (taken(str))
945 tal_free(str);
946 }
947}
948
949static void channel_err(struct channel *channel, const char *why)
950{

Callers 5

dualopen_tell_depthFunction · 0.85
onchain_errorFunction · 0.85
peer_closing_completeFunction · 0.85
htlc_offer_timeoutFunction · 0.85
try_connectFunction · 0.85

Calls 3

tal_freeFunction · 0.85
takenFunction · 0.85
channel_state_nameFunction · 0.70

Tested by

no test coverage detected