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

Function currency_done

plugins/offers_offer.c:356–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356static struct command_result *currency_done(struct command *cmd,
357 const char *method,
358 const char *buf,
359 const jsmntok_t *result,
360 struct offer_info *offinfo)
361{
362 /* Fail in this case, by forwarding warnings. */
363 if (!json_get_member(buf, result, "msat"))
364 return forward_error(cmd, method, buf, result, offinfo);
365
366 return maybe_add_path(cmd, offinfo);
367}
368
369static bool json_to_sciddir_or_pubkey(const char *buffer, const jsmntok_t *tok,
370 struct sciddir_or_pubkey *sciddir_or_pubkey)

Callers

nothing calls this directly

Calls 3

json_get_memberFunction · 0.85
maybe_add_pathFunction · 0.85
forward_errorFunction · 0.70

Tested by

no test coverage detected