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