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

Function mw_forward_error

plugins/spender/multiwithdraw.c:277–286  ·  view source on GitHub ↗

Use this instead of forward_error. */

Source from the content-addressed store, hash-verified

275
276/* Use this instead of forward_error. */
277static struct command_result *
278mw_forward_error(struct command *cmd UNUSED,
279 const char *method,
280 const char *buf,
281 const jsmntok_t *error,
282 struct multiwithdraw_command *mw)
283{
284 return mw_perform_cleanup(mw,
285 take(json_strdup(NULL, buf, error)));
286}
287/* Use this instead of command_fail. */
288static struct command_result *
289mw_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