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

Function param_msat_or_any

plugins/offers_offer.c:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static struct command_result *param_msat_or_any(struct command *cmd,
30 const char *name,
31 const char *buffer,
32 const jsmntok_t *tok,
33 struct tlv_offer *offer)
34{
35 if (msat_or_any(buffer, tok, offer))
36 return NULL;
37 return command_fail_badparam(cmd, name, buffer, tok,
38 "should be 'any' or msatoshis");
39}
40
41static struct command_result *param_amount(struct command *cmd,
42 const char *name,

Callers

nothing calls this directly

Calls 2

msat_or_anyFunction · 0.85
command_fail_badparamFunction · 0.85

Tested by

no test coverage detected