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

Function amount_msat_to_sat_round_down

common/amount.c:32–38  ·  view source on GitHub ↗

You can always truncate millisatoshis->satoshis. */

Source from the content-addressed store, hash-verified

30
31/* You can always truncate millisatoshis->satoshis. */
32struct amount_sat amount_msat_to_sat_round_down(struct amount_msat msat)
33{
34 struct amount_sat sat;
35
36 sat.satoshis = msat.millisatoshis / MSAT_PER_SAT;
37 return sat;
38}
39
40/* Different formatting by amounts: btc, sat and msat */
41const char *fmt_amount_msat_btc(const tal_t *ctx,

Callers 13

adjust_offerFunction · 0.85
htlc_timeout_txFunction · 0.85
json_listfundsFunction · 0.85
add_offered_htlc_outFunction · 0.85
add_received_htlc_outFunction · 0.85
commit_txFunction · 0.85
approx_max_feerateFunction · 0.85
hook_extract_amountFunction · 0.85
peer_start_closingdFunction · 0.85
initial_commit_txFunction · 0.85
htlc_txFunction · 0.85
check_config_boundsFunction · 0.85

Calls

no outgoing calls

Tested by 1

htlc_timeout_txFunction · 0.68