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

Function param_offer

plugins/fetchinvoice.c:437–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437static struct command_result *param_offer(struct command *cmd,
438 const char *name,
439 const char *buffer,
440 const jsmntok_t *tok,
441 struct tlv_offer **offer)
442{
443 const char *fail;
444
445 *offer = offer_decode(cmd, buffer + tok->start, tok->end - tok->start,
446 plugin_feature_set(cmd->plugin), chainparams,
447 &fail);
448 if (!*offer)
449 return command_fail_badparam(cmd, name, buffer, tok,
450 tal_fmt(cmd,
451 "Unparsable offer: %s",
452 fail));
453 return NULL;
454}
455
456static struct blinded_path *make_reply_path(const tal_t *ctx,
457 struct plugin *plugin,

Callers

nothing calls this directly

Calls 3

offer_decodeFunction · 0.85
plugin_feature_setFunction · 0.70
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected