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

Function amount_msat_sub

common/amount.c:266–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266WARN_UNUSED_RESULT bool amount_msat_sub(struct amount_msat *val,
267 struct amount_msat a,
268 struct amount_msat b)
269{
270 if (a.millisatoshis < b.millisatoshis)
271 return false;
272
273 val->millisatoshis = a.millisatoshis - b.millisatoshis;
274 return true;
275}
276
277WARN_UNUSED_RESULT bool amount_sat_add(struct amount_sat *val,
278 struct amount_sat a,

Callers 15

htlc_dustFunction · 0.85
add_htlcFunction · 0.85
subtract_offered_htlcsFunction · 0.85
subtract_received_htlcsFunction · 0.85
check_fwd_amountFunction · 0.85
remove_htlc_outFunction · 0.85
new_htlc_outFunction · 0.85
channel_record_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected