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

Function mfc_forward_error

plugins/spender/multifundchannel.c:399–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397 return mfc_cleanup(mfc, &mfc_err_raw_complete, obj);
398}
399struct command_result *
400mfc_forward_error(struct command *cmd,
401 const char *method,
402 const char *buf, const jsmntok_t *error,
403 struct multifundchannel_command *mfc)
404{
405 plugin_log(cmd->plugin, LOG_DBG,
406 "mfc %"PRIu64": forwarding error, about to cleanup.",
407 mfc->id);
408 return mfc_err_raw(mfc, json_strdup(tmpctx, buf, error));
409}
410
411struct mfc_finished_object {
412 struct multifundchannel_command *mfc;

Callers

nothing calls this directly

Calls 3

mfc_err_rawFunction · 0.85
plugin_logFunction · 0.50
json_strdupFunction · 0.50

Tested by

no test coverage detected