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

Function param_b12_offer

lightningd/offer.c:37–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static struct command_result *param_b12_offer(struct command *cmd,
38 const char *name,
39 const char *buffer,
40 const jsmntok_t *tok,
41 struct tlv_offer **offer)
42{
43 char *fail;
44 *offer = offer_decode(cmd, buffer + tok->start,
45 tok->end - tok->start,
46 cmd->ld->our_features, chainparams, &fail);
47 if (!*offer)
48 return command_fail_badparam(cmd, name, buffer, tok, fail);
49 if ((*offer)->signature)
50 return command_fail_badparam(cmd, name, buffer, tok,
51 "must be unsigned offer");
52 return NULL;
53}
54
55static void hsm_sign_b12(struct lightningd *ld,
56 const char *messagename,

Callers

nothing calls this directly

Calls 2

offer_decodeFunction · 0.85
command_fail_badparamFunction · 0.85

Tested by

no test coverage detected