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

Function fail_destination_msg

plugins/spender/multifundchannel.c:74–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void fail_destination_msg(struct multifundchannel_destination *dest,
75 enum jsonrpc_errcode error_code,
76 const char *err_str TAKES)
77{
78 dest->error_code = error_code;
79 dest->error_message = tal_strdup(dest->mfc, err_str);
80 dest->error_data = NULL;
81
82 fail_destination(dest);
83}
84
85/* Return true if this destination failed, false otherwise. */
86static 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