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

Function amount_msat_greater_sat

common/amount.c:423–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423bool amount_msat_greater_sat(struct amount_msat msat, struct amount_sat sat)
424{
425 struct amount_msat msat_from_sat;
426
427 if (!amount_sat_to_msat(&msat_from_sat, sat))
428 return false;
429 return msat.millisatoshis > msat_from_sat.millisatoshis;
430}
431
432bool amount_msat_greater_eq_sat(struct amount_msat msat, struct amount_sat sat)
433{

Callers 7

commit_txFunction · 0.85
json_fundchannel_startFunction · 0.85
initial_commit_txFunction · 0.85
fundee_channelFunction · 0.85
check_config_boundsFunction · 0.85

Calls 1

amount_sat_to_msatFunction · 0.70

Tested by

no test coverage detected