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

Function route_final_error

plugins/renepay/routefail.c:184–198  ·  view source on GitHub ↗

Mark this as a final error. When read this route result will inmediately end * the payment. */

Source from the content-addressed store, hash-verified

182/* Mark this as a final error. When read this route result will inmediately end
183 * the payment. */
184static void route_final_error(struct route *route, enum jsonrpc_errcode error,
185 const char *fmt, ...)
186{
187 assert(route);
188
189 va_list ap;
190 const char *what;
191
192 va_start(ap, fmt);
193 what = tal_vfmt(tmpctx, fmt, ap);
194 va_end(ap);
195
196 route->final_error = error;
197 route->final_msg = tal_strdup(route, what);
198}
199
200/* FIXME: do proper error handling for BOLT12 */
201static struct command_result *handle_failure(struct routefail *r)

Callers 1

handle_failureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected