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

Function pay_error

plugins/offers_inv_hook.c:146–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146static struct command_result *pay_error(struct command *cmd,
147 const char *buf,
148 const jsmntok_t *error,
149 struct inv *inv)
150{
151 const jsmntok_t *msgtok = json_get_member(buf, error, "message");
152
153 return fail_inv(cmd, inv, "pay attempt failed: %.*s",
154 json_tok_full_len(msgtok),
155 json_tok_full(buf, msgtok));
156}
157
158static struct command_result *listoffers_done(struct command *cmd,
159 const char *buf,

Callers

nothing calls this directly

Calls 4

fail_invFunction · 0.85
json_get_memberFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected