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

Function amount_sat_sub_msat

common/amount.c:342–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342WARN_UNUSED_RESULT bool amount_sat_sub_msat(struct amount_msat *val,
343 struct amount_sat a,
344 struct amount_msat b)
345{
346 struct amount_msat msata;
347
348 if (!amount_sat_to_msat(&msata, a))
349 return false;
350
351 return amount_msat_sub(val, msata, b);
352}
353
354WARN_UNUSED_RESULT bool amount_msat_add_sat(struct amount_msat *val,
355 struct amount_msat a,

Callers 8

migrate_setup_coinmovesFunction · 0.85
peer_start_closingdFunction · 0.85
wallet_commit_channelFunction · 0.85
new_initial_channelFunction · 0.85
funder_channel_completeFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

amount_msat_subFunction · 0.85
amount_sat_to_msatFunction · 0.70

Tested by

no test coverage detected