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

Function amount_msat_less_eq_sat

common/amount.c:515–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515bool amount_msat_less_eq_sat(struct amount_msat msat, struct amount_sat sat)
516{
517 struct amount_msat msat_from_sat;
518
519 if (!amount_sat_to_msat(&msat_from_sat, sat))
520 return false;
521 return msat.millisatoshis <= msat_from_sat.millisatoshis;
522}
523
524bool amount_msat_eq_sat(struct amount_msat msat, struct amount_sat sat)
525{

Callers 1

get_room_above_reserveFunction · 0.85

Calls 1

amount_sat_to_msatFunction · 0.70

Tested by

no test coverage detected