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

Function mfc_fail

plugins/spender/multifundchannel.c:349–368  ·  view source on GitHub ↗

Use this instead of command_fail. */

Source from the content-addressed store, hash-verified

347
348/* Use this instead of command_fail. */
349static struct command_result *
350mfc_fail(struct multifundchannel_command *mfc, enum jsonrpc_errcode code,
351 const char *fmt, ...)
352{
353 struct mfc_fail_object *obj;
354 const char *msg;
355 va_list ap;
356
357 va_start(ap, fmt);
358 msg = tal_vfmt(mfc, fmt, ap);
359 va_end(ap);
360
361 obj = tal(mfc, struct mfc_fail_object);
362 obj->mfc = mfc;
363 obj->cmd = mfc->cmd;
364 obj->code = code;
365 obj->msg = msg;
366
367 return mfc_cleanup(mfc, &mfc_fail_complete, obj);
368}
369struct mfc_err_raw_object {
370 struct multifundchannel_command *mfc;
371 const char *error;

Callers 3

compute_mfc_allFunction · 0.85
perform_fundpsbtFunction · 0.85
after_getfeerateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected