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

Function amount_msat_to_u32

common/amount.c:469–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469bool amount_msat_to_u32(struct amount_msat msat, u32 *millisatoshis)
470{
471 if (amount_msat_greater_eq(msat, AMOUNT_MSAT(0x100000000)))
472 return false;
473 *millisatoshis = msat.millisatoshis;
474 return true;
475}
476
477struct amount_msat amount_msat(u64 millisatoshis)
478{

Callers 1

param_msat_u32Function · 0.85

Calls 1

amount_msat_greater_eqFunction · 0.85

Tested by

no test coverage detected