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

Function amount_msat_deduct_sat

common/amount.c:291–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291WARN_UNUSED_RESULT bool amount_msat_deduct_sat(struct amount_msat *a,
292 struct amount_sat b)
293{
294 return amount_msat_sub_sat(a, *a, b);
295}
296
297WARN_UNUSED_RESULT bool amount_msat_sub(struct amount_msat *val,
298 struct amount_msat a,

Callers 8

get_room_above_reserveFunction · 0.85
add_htlcFunction · 0.85
approx_max_feerateFunction · 0.85
channel_amount_spendableFunction · 0.85
select_inchanFunction · 0.85
try_subtract_feeFunction · 0.85
mainFunction · 0.85

Calls 1

amount_msat_sub_satFunction · 0.85

Tested by

no test coverage detected