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

Function funding_success

lightningd/opening_control.c:278–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278static void funding_success(struct channel *channel)
279{
280 struct json_stream *response;
281 struct funding_channel *fc =
282 channel->peer->uncommitted_channel->fc;
283 struct command *cmd = fc->cmd;
284
285 /* Well, those cancels now need to trigger! */
286 for (size_t i = 0; i < tal_count(fc->cancels); i++)
287 cancel_after_fundchannel_complete_success(fc->cancels[i],
288 channel);
289
290 response = json_stream_success(cmd);
291 json_add_string(response, "channel_id",
292 type_to_string(tmpctx, struct channel_id,
293 &channel->cid));
294 json_add_bool(response, "commitments_secured", true);
295 was_pending(command_success(cmd, response));
296}
297
298static void funding_started_success(struct funding_channel *fc)
299{

Callers 1

opening_funder_finishedFunction · 0.85

Calls 7

was_pendingFunction · 0.85
json_stream_successFunction · 0.70
command_successFunction · 0.70
json_add_stringFunction · 0.50
type_to_stringClass · 0.50
json_add_boolFunction · 0.50

Tested by

no test coverage detected