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

Function htlc_has

channeld/channeld_htlc.h:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34};
35
36static inline bool htlc_has(const struct htlc *h, int flag)
37{
38 return htlc_state_flags(h->state) & flag;
39}
40
41static inline enum side htlc_owner(const struct htlc *h)
42{

Callers 5

gather_htlcsFunction · 0.85
channel_fulfill_htlcFunction · 0.85
channel_fail_htlcFunction · 0.85
adjust_balanceFunction · 0.85
htlc_getFunction · 0.85

Calls 1

htlc_state_flagsFunction · 0.50

Tested by

no test coverage detected