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

Function amount_msat_eq_sat

common/amount.c:459–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459bool amount_msat_eq_sat(struct amount_msat msat, struct amount_sat sat)
460{
461 struct amount_msat msat_from_sat;
462
463 if (!amount_sat_to_msat(&msat_from_sat, sat))
464 return false;
465
466 return msat.millisatoshis == msat_from_sat.millisatoshis;
467}
468
469bool amount_msat_to_u32(struct amount_msat msat, u32 *millisatoshis)
470{

Callers

nothing calls this directly

Calls 1

amount_sat_to_msatFunction · 0.70

Tested by

no test coverage detected