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

Function amount_msat_to_sat

common/amount.c:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21bool amount_msat_to_sat(struct amount_sat *sat,
22 struct amount_msat msat)
23{
24 if (msat.millisatoshis % MSAT_PER_SAT)
25 return false;
26 sat->satoshis = msat.millisatoshis / MSAT_PER_SAT;
27 return true;
28}
29
30
31/* You can always truncate millisatoshis->satoshis. */

Callers 7

json_add_channelFunction · 0.85
psbt_createdFunction · 0.85
json_to_msat_as_satsFunction · 0.85
param_msat_as_satFunction · 0.85
after_fundpsbtFunction · 0.85
mw_after_fundpsbtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected