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

Function commit_tx_base_fee

common/initial_commit_tx.h:62–71  ·  view source on GitHub ↗

Helper to calculate the base fee if we have this many htlc outputs */

Source from the content-addressed store, hash-verified

60
61/* Helper to calculate the base fee if we have this many htlc outputs */
62static inline struct amount_sat commit_tx_base_fee(u32 feerate_per_kw,
63 size_t num_untrimmed_htlcs,
64 bool option_anchor_outputs,
65 bool option_anchors_zero_fee_htlc_tx)
66{
67 return amount_tx_fee(feerate_per_kw,
68 commit_tx_base_weight(num_untrimmed_htlcs,
69 option_anchor_outputs,
70 option_anchors_zero_fee_htlc_tx));
71}
72
73/**
74 * initial_commit_tx: create (unsigned) commitment tx to spend the funding tx output

Callers 9

commit_txFunction · 0.85
fee_for_htlcsFunction · 0.85
mainFunction · 0.85
commit_txfeeFunction · 0.85
initial_commit_txFunction · 0.85
check_config_boundsFunction · 0.85
mainFunction · 0.85

Calls 2

commit_tx_base_weightFunction · 0.85
amount_tx_feeFunction · 0.70

Tested by 1

mainFunction · 0.68