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

Function new_channel_open_attempt

lightningd/channel.c:250–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected