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

Function json_to_msat_as_sats

plugins/funder.c:493–500  ·  view source on GitHub ↗

They give msats, we want sats */

Source from the content-addressed store, hash-verified

491
492/* They give msats, we want sats */
493static bool json_to_msat_as_sats(const char *buffer, const jsmntok_t *tok,
494 struct amount_sat *sat)
495{
496 struct amount_msat msat;
497 if (!json_to_msat(buffer, tok, &msat))
498 return false;
499 return amount_msat_to_sat(sat, msat);
500}
501
502static struct command_result *param_msat_as_sat(struct command *cmd,
503 const char *name,

Callers

nothing calls this directly

Calls 2

amount_msat_to_satFunction · 0.85
json_to_msatFunction · 0.50

Tested by

no test coverage detected