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

Function amount_msat_sub

common/amount.c:297–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297WARN_UNUSED_RESULT bool amount_msat_sub(struct amount_msat *val,
298 struct amount_msat a,
299 struct amount_msat b)
300{
301 if (a.millisatoshis < b.millisatoshis)
302 return false;
303
304 val->millisatoshis = a.millisatoshis - b.millisatoshis;
305 return true;
306}
307
308WARN_UNUSED_RESULT bool amount_sat_add(struct amount_sat *val,
309 struct amount_sat a,

Callers 15

forwarding_detailsFunction · 0.85
migrate_setup_coinmovesFunction · 0.85
check_balancesFunction · 0.85
add_htlcFunction · 0.85
check_fwd_amountFunction · 0.85
new_htlc_outFunction · 0.85
channel_record_openFunction · 0.85
select_inchanFunction · 0.85
calc_capacityFunction · 0.85

Calls

no outgoing calls

Tested by 1

account_get_balanceFunction · 0.68