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

Function mfc_fail

plugins/spender/multifundchannel.c:355–374  ·  view source on GitHub ↗

Use this instead of command_fail. */

Source from the content-addressed store, hash-verified

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

Callers 3

after_fundpsbtFunction · 0.85
perform_fundpsbtFunction · 0.85
after_getfeerateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected