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

Function trim

channeld/commit_tx.c:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#endif
12
13static bool trim(const struct htlc *htlc,
14 u32 feerate_per_kw,
15 struct amount_sat dust_limit,
16 bool option_anchor_outputs,
17 bool option_anchors_zero_fee_htlc_tx,
18 enum side side)
19{
20 return htlc_is_trimmed(htlc_owner(htlc), htlc->amount,
21 feerate_per_kw, dust_limit, side,
22 option_anchor_outputs,
23 option_anchors_zero_fee_htlc_tx);
24}
25
26size_t commit_tx_num_untrimmed(const struct htlc **htlcs,
27 u32 feerate_per_kw,

Callers 3

commit_tx_num_untrimmedFunction · 0.85
commit_tx_amount_trimmedFunction · 0.85
commit_txFunction · 0.85

Calls 2

htlc_is_trimmedFunction · 0.85
htlc_ownerFunction · 0.85

Tested by

no test coverage detected