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

Function channel_set_owner

lightningd/channel.c:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19#include <wallet/txfilter.h>
20
21void channel_set_owner(struct channel *channel, struct subd *owner)
22{
23 struct subd *old_owner = channel->owner;
24 channel->owner = owner;
25
26 if (old_owner)
27 subd_release_channel(old_owner, channel);
28}
29
30struct htlc_out *channel_has_htlc_out(const struct channel *channel)
31{

Callers 13

peer_restart_dualopendFunction · 0.85
destroy_channelFunction · 0.85
channel_fail_permFunction · 0.85
channel_internal_errorFunction · 0.85
channel_errFunction · 0.85
onchain_tx_watchedFunction · 0.85
onchain_errorFunction · 0.85
onchaind_funding_spentFunction · 0.85
peer_closing_completeFunction · 0.85
peer_start_closingdFunction · 0.85
force_peer_disconnectFunction · 0.85

Calls 1

subd_release_channelFunction · 0.70

Tested by

no test coverage detected