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

Function amount_msat_mul

common/amount.c:518–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518bool amount_msat_mul(struct amount_msat *res, struct amount_msat msat, u64 mul)
519{
520 if ( mul_overflows_u64(msat.millisatoshis, mul))
521 return false;
522 res->millisatoshis = msat.millisatoshis * mul;
523 return true;
524}
525
526bool amount_msat_fee(struct amount_msat *fee,
527 struct amount_msat amt,

Callers

nothing calls this directly

Calls 1

mul_overflows_u64Function · 0.85

Tested by

no test coverage detected