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

Function commit_tx_base_fee

common/initial_commit_tx.h:58–65  ·  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

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

Callers 10

commit_txFunction · 0.85
fee_for_htlcsFunction · 0.85
mainFunction · 0.85
commit_txfeeFunction · 0.85
peer_start_closingdFunction · 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