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

Function new_channel_open_attempt

lightningd/channel.c:244–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244struct open_attempt *new_channel_open_attempt(struct channel *channel)
245{
246 struct open_attempt *oa = tal(channel, struct open_attempt);
247 oa->channel = channel;
248 /* Copy over the config; we'll clobber the reserve */
249 oa->our_config = channel->our_config;
250 oa->role = channel->opener == LOCAL ? TX_INITIATOR : TX_ACCEPTER;
251 oa->our_upfront_shutdown_script = NULL;
252 oa->cmd = NULL;
253 oa->aborted = false;
254 oa->open_msg = NULL;
255
256 return oa;
257}
258
259struct channel_type *desired_channel_type(const tal_t *ctx,
260 const struct feature_set *our_features,

Callers 5

rbf_channel_hook_cbFunction · 0.85
openchannel2_hook_cbFunction · 0.85
openchannel_bumpFunction · 0.85
openchannel_initFunction · 0.85
json_queryratesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected