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

Function param_b12_offer

lightningd/offer.c:50–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static struct command_result *param_b12_offer(struct command *cmd,
51 const char *name,
52 const char *buffer,
53 const jsmntok_t *tok,
54 struct tlv_offer **offer)
55{
56 const char *fail;
57 *offer = offer_decode(cmd, buffer + tok->start,
58 tok->end - tok->start,
59 cmd->ld->our_features, chainparams, &fail);
60 if (!*offer)
61 return command_fail_badparam(cmd, name, buffer, tok, fail);
62 return NULL;
63}
64
65static void hsm_sign_b12(struct lightningd *ld,
66 const char *messagename,

Callers

nothing calls this directly

Calls 2

offer_decodeFunction · 0.85
command_fail_badparamFunction · 0.50

Tested by

no test coverage detected