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

Function tx_feerate

bitcoin/tx.c:999–1012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997}
998
999u32 tx_feerate(const struct bitcoin_tx *tx)
1000{
1001
1002 u32 feerate;
1003
1004 /* Fee should not overflow! */
1005 if (!amount_feerate(&feerate,
1006 bitcoin_tx_compute_fee(tx),
1007 bitcoin_tx_weight(tx))) {
1008 abort();
1009 }
1010
1011 return feerate;
1012}

Callers 1

reportFunction · 0.85

Calls 4

bitcoin_tx_compute_feeFunction · 0.85
bitcoin_tx_weightFunction · 0.85
abortFunction · 0.85
amount_feerateFunction · 0.50

Tested by 1

reportFunction · 0.68