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

Function pay_error

plugins/offers_inv_hook.c:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static struct command_result *pay_error(struct command *cmd,
112 const char *method,
113 const char *buf,
114 const jsmntok_t *error,
115 struct inv *inv)
116{
117 const jsmntok_t *msgtok = json_get_member(buf, error, "message");
118
119 return fail_inv(cmd, inv, "pay attempt failed: %.*s",
120 json_tok_full_len(msgtok),
121 json_tok_full(buf, msgtok));
122}
123
124static struct command_result *listinvreqs_done(struct command *cmd,
125 const char *method,

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected