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

Function fail_destination_msg

plugins/spender/multifundchannel.c:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void fail_destination_msg(struct multifundchannel_destination *dest,
72 enum jsonrpc_errcode error_code,
73 const char *err_str TAKES)
74{
75 dest->error_code = error_code;
76 dest->error_message = tal_strdup(dest->mfc, err_str);
77 dest->error_data = NULL;
78
79 fail_destination(dest);
80}
81
82/* Return true if this destination failed, false otherwise. */
83static bool dest_failed(struct multifundchannel_destination *dest)

Callers 4

connect_okFunction · 0.85
openchannel_init_okFunction · 0.85

Calls 1

fail_destinationFunction · 0.85

Tested by

no test coverage detected