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

Function channel_active

lightningd/channel.h:475–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

473}
474
475static inline bool channel_active(const struct channel *channel)
476{
477 return channel->state != FUNDING_SPEND_SEEN
478 && channel->state != CLOSINGD_COMPLETE
479 && channel->state != AWAITING_UNILATERAL
480 && !channel_unsaved(channel)
481 && !channel_on_chain(channel);
482}
483
484static inline bool channel_closed(const struct channel *channel)
485{

Callers 12

peer_any_active_channelFunction · 0.85
channel_fail_permanentFunction · 0.85
peer_channels_cleanupFunction · 0.85
peer_spokeFunction · 0.85
command_find_channelFunction · 0.85
setup_peerFunction · 0.85
json_getinfoFunction · 0.85
forward_htlcFunction · 0.85
report_chan_balanceFunction · 0.85
try_connectFunction · 0.85

Calls 2

channel_unsavedFunction · 0.85
channel_on_chainFunction · 0.85

Tested by

no test coverage detected