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

Function json_to_msat_to_sat

plugins/spender/splice.c:597–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595 struct splice_cmd *splice_cmd);
596
597static bool json_to_msat_to_sat(const char *buffer, const jsmntok_t *tok,
598 struct amount_sat *sat)
599{
600 struct amount_msat msat;
601
602 if (!json_to_msat(buffer, tok, &msat))
603 return false;
604 return amount_msat_to_sat(sat, msat);
605}
606
607static bool json_to_msat_to_sat_round_down(const char *buffer,
608 const jsmntok_t *tok,

Callers 1

addpsbt_get_resultFunction · 0.70

Calls 2

amount_msat_to_satFunction · 0.85
json_to_msatFunction · 0.50

Tested by

no test coverage detected