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

Function amount_msat_less_eq_sat

common/amount.c:450–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450bool amount_msat_less_eq_sat(struct amount_msat msat, struct amount_sat sat)
451{
452 struct amount_msat msat_from_sat;
453
454 if (!amount_sat_to_msat(&msat_from_sat, sat))
455 return false;
456 return msat.millisatoshis <= msat_from_sat.millisatoshis;
457}
458
459bool amount_msat_eq_sat(struct amount_msat msat, struct amount_sat sat)
460{

Callers

nothing calls this directly

Calls 1

amount_sat_to_msatFunction · 0.70

Tested by

no test coverage detected