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

Function currency_done

plugins/offers_offer.c:303–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303static struct command_result *currency_done(struct command *cmd,
304 const char *buf,
305 const jsmntok_t *result,
306 struct offer_info *offinfo)
307{
308 /* Fail in this case, by forwarding warnings. */
309 if (!json_get_member(buf, result, "msat"))
310 return forward_error(cmd, buf, result, offinfo);
311
312 return create_offer(cmd, offinfo);
313}
314
315struct command_result *json_offer(struct command *cmd,
316 const char *buffer,

Callers

nothing calls this directly

Calls 3

forward_errorFunction · 0.85
create_offerFunction · 0.85
json_get_memberFunction · 0.50

Tested by

no test coverage detected