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

Function amount_msat_less_sat

common/amount.c:506–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506bool amount_msat_less_sat(struct amount_msat msat, struct amount_sat sat)
507{
508 struct amount_msat msat_from_sat;
509
510 if (!amount_sat_to_msat(&msat_from_sat, sat))
511 return false;
512 return msat.millisatoshis < msat_from_sat.millisatoshis;
513}
514
515bool amount_msat_less_eq_sat(struct amount_msat msat, struct amount_sat sat)
516{

Callers 4

check_balancesFunction · 0.85
add_htlcFunction · 0.85
htlc_is_trimmedFunction · 0.85
increase_flowsFunction · 0.85

Calls 1

amount_sat_to_msatFunction · 0.70

Tested by

no test coverage detected