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

Function currency_done

plugins/offers_offer.c:361–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361static struct command_result *currency_done(struct command *cmd,
362 const char *method,
363 const char *buf,
364 const jsmntok_t *result,
365 struct offer_info *offinfo)
366{
367 /* Fail in this case, by forwarding warnings. */
368 if (!json_get_member(buf, result, "msat"))
369 return forward_error(cmd, method, buf, result, offinfo);
370
371 return maybe_add_path(cmd, offinfo);
372}
373
374static bool json_to_sciddir_or_pubkey(const char *buffer, const jsmntok_t *tok,
375 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