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

Function json_to_msat_to_sat

common/splice_script.c:2636–2644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2634}
2635
2636static bool json_to_msat_to_sat(const char *buffer, const jsmntok_t *tok,
2637 struct amount_sat *sat)
2638{
2639 struct amount_msat msat;
2640
2641 if (!json_to_msat(buffer, tok, &msat))
2642 return false;
2643 return amount_msat_to_sat(sat, msat);
2644}
2645
2646bool json_to_splice(const tal_t *ctx, const char *buffer, const jsmntok_t *tok,
2647 struct splice_script_result ***result)

Callers 1

json_to_spliceFunction · 0.70

Calls 2

amount_msat_to_satFunction · 0.85
json_to_msatFunction · 0.70

Tested by

no test coverage detected