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

Function commit_tx_num_untrimmed

channeld/commit_tx.c:26–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26size_t commit_tx_num_untrimmed(const struct htlc **htlcs,
27 u32 feerate_per_kw,
28 struct amount_sat dust_limit,
29 bool option_anchor_outputs,
30 bool option_anchors_zero_fee_htlc_tx,
31 enum side side)
32{
33 size_t i, n;
34
35 for (i = n = 0; i < tal_count(htlcs); i++)
36 n += !trim(htlcs[i], feerate_per_kw, dust_limit,
37 option_anchor_outputs,
38 option_anchors_zero_fee_htlc_tx,
39 side);
40
41 return n;
42}
43
44bool commit_tx_amount_trimmed(const struct htlc **htlcs,
45 u32 feerate_per_kw,

Callers 3

commit_txFunction · 0.85
num_untrimmed_htlcsFunction · 0.85

Calls 1

trimFunction · 0.85

Tested by

no test coverage detected