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

Function amount_feerate

common/amount.c:709–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709bool amount_feerate(u32 *feerate, struct amount_sat fee, size_t weight)
710{
711 assert(weight);
712
713 if (!amount_sat_mul(&fee, fee, 1000))
714 return false;
715
716 return assign_overflow_u32(feerate, fee.satoshis / weight);
717}
718
719bool amount_asset_is_main(struct amount_asset *amount)
720{

Callers 5

tx_feerateFunction · 0.50
calc_feerateFunction · 0.50
try_anchor_psbtFunction · 0.50
spend_anchorFunction · 0.50
runFunction · 0.50

Calls 2

amount_sat_mulFunction · 0.85
assign_overflow_u32Function · 0.85

Tested by

no test coverage detected