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

Function new_channel_state_change

lightningd/channel.c:953–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951}
952
953struct channel_state_change *new_channel_state_change(const tal_t *ctx,
954 struct timeabs timestamp,
955 enum channel_state old_state,
956 enum channel_state new_state,
957 enum state_change cause,
958 const char *message TAKES)
959{
960 struct channel_state_change *c = tal(ctx, struct channel_state_change);
961 c->timestamp = timestamp;
962 c->old_state = old_state;
963 c->new_state = new_state;
964 c->cause = cause;
965 c->message = tal_strdup(c, message);
966 return c;
967}
968
969bool channel_important_filter(const struct channel *channel, void *unused)
970{

Callers 1

channel_set_stateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected