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

Function json_to_msat_as_sats

plugins/funder.c:363–370  ·  view source on GitHub ↗

They give msats, we want sats */

Source from the content-addressed store, hash-verified

361
362/* They give msats, we want sats */
363static bool json_to_msat_as_sats(const char *buffer, const jsmntok_t *tok,
364 struct amount_sat *sat)
365{
366 struct amount_msat msat;
367 if (!json_to_msat(buffer, tok, &msat))
368 return false;
369 return amount_msat_to_sat(sat, msat);
370}
371
372static struct command_result *param_msat_as_sat(struct command *cmd,
373 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