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

Function amount_sat_sub

common/amount.c:319–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319WARN_UNUSED_RESULT bool amount_sat_sub(struct amount_sat *val,
320 struct amount_sat a,
321 struct amount_sat b)
322{
323 if (a.satoshis < b.satoshis)
324 return false;
325
326 val->satoshis = a.satoshis - b.satoshis;
327 return true;
328}
329
330WARN_UNUSED_RESULT bool amount_msat_sub_sat(struct amount_msat *val,
331 struct amount_msat a,

Callers 15

amount_sat_add_sat_s64Function · 0.70
htlc_txFunction · 0.70
close_txFunction · 0.50
adjust_feerangeFunction · 0.50
adjust_offerFunction · 0.50
trim_maximum_feerateFunction · 0.50
grind_htlc_tx_feeFunction · 0.50
set_htlc_timeout_feeFunction · 0.50
change_feeFunction · 0.50
change_amountFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected