Helper to calculate the base fee if we have this many htlc outputs */
| 60 | |
| 61 | /* Helper to calculate the base fee if we have this many htlc outputs */ |
| 62 | static 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 |