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

Function connect_err

plugins/spender/multifundchannel.c:1587–1605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1585}
1586
1587static struct command_result *
1588connect_err(struct command *cmd,
1589 const char *method,
1590 const char *buf,
1591 const jsmntok_t *error,
1592 struct multifundchannel_destination *dest)
1593{
1594 struct multifundchannel_command *mfc = dest->mfc;
1595
1596 plugin_log(mfc->cmd->plugin, LOG_DBG,
1597 "mfc %"PRIu64", dest %u: failed! connect %s: %.*s.",
1598 mfc->id, dest->index,
1599 fmt_node_id(tmpctx, &dest->id),
1600 json_tok_full_len(error),
1601 json_tok_full(buf, error));
1602
1603 fail_destination_tok(dest, buf, error);
1604 return connect_done(dest);
1605}
1606
1607static void
1608connect_dest(struct multifundchannel_destination *dest)

Callers

nothing calls this directly

Calls 6

fmt_node_idFunction · 0.85
fail_destination_tokFunction · 0.85
connect_doneFunction · 0.85
plugin_logFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected