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

Function amount_sat_mul

common/amount.c:510–516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510bool amount_sat_mul(struct amount_sat *res, struct amount_sat sat, u64 mul)
511{
512 if ( mul_overflows_u64(sat.satoshis, mul))
513 return false;
514 res->satoshis = sat.satoshis * mul;
515 return true;
516}
517
518bool amount_msat_mul(struct amount_msat *res, struct amount_msat msat, u64 mul)
519{

Callers 1

funder_channel_startFunction · 0.85

Calls 1

mul_overflows_u64Function · 0.85

Tested by

no test coverage detected