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

Function amount_msat_less_sat

common/amount.c:441–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441bool amount_msat_less_sat(struct amount_msat msat, struct amount_sat sat)
442{
443 struct amount_msat msat_from_sat;
444
445 if (!amount_sat_to_msat(&msat_from_sat, sat))
446 return false;
447 return msat.millisatoshis < msat_from_sat.millisatoshis;
448}
449
450bool amount_msat_less_eq_sat(struct amount_msat msat, struct amount_sat sat)
451{

Callers 2

add_htlcFunction · 0.85
htlc_is_trimmedFunction · 0.85

Calls 1

amount_sat_to_msatFunction · 0.70

Tested by

no test coverage detected