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

Function cmd_id_from_close_command

lightningd/closing_control.c:70–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70const char *cmd_id_from_close_command(const tal_t *ctx,
71 struct lightningd *ld, struct channel *channel)
72{
73 struct close_command *cc;
74
75 list_for_each(&ld->close_commands, cc, list) {
76 if (cc->channel != channel)
77 continue;
78 return tal_strdup(ctx, cc->cmd->id);
79 }
80 return NULL;
81}
82
83/* Resolve a close command for a channel that will be closed soon. */
84void resolve_close_command(struct lightningd *ld, struct channel *channel,

Callers 1

drop_to_chainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected