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

Function amount_msat_eq_sat

common/amount.c:524–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524bool amount_msat_eq_sat(struct amount_msat msat, struct amount_sat sat)
525{
526 struct amount_msat msat_from_sat;
527
528 if (!amount_sat_to_msat(&msat_from_sat, sat))
529 return false;
530
531 return msat.millisatoshis == msat_from_sat.millisatoshis;
532}
533
534bool amount_msat_to_u32(struct amount_msat msat, u32 *millisatoshis)
535{

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

amount_sat_to_msatFunction · 0.70

Tested by 2

mainFunction · 0.68
mainFunction · 0.68