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

Function mw_forward_error

plugins/spender/multiwithdraw.c:280–288  ·  view source on GitHub ↗

Use this instead of forward_error. */

Source from the content-addressed store, hash-verified

278
279/* Use this instead of forward_error. */
280static struct command_result *
281mw_forward_error(struct command *cmd UNUSED,
282 const char *buf,
283 const jsmntok_t *error,
284 struct multiwithdraw_command *mw)
285{
286 return mw_perform_cleanup(mw,
287 take(json_strdup(NULL, buf, error)));
288}
289/* Use this instead of command_fail. */
290static struct command_result *
291mw_fail(struct multiwithdraw_command *mw, enum jsonrpc_errcode code,

Callers

nothing calls this directly

Calls 2

mw_perform_cleanupFunction · 0.85
json_strdupFunction · 0.50

Tested by

no test coverage detected