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

Function new_channel_open_attempt

lightningd/channel.c:179–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179struct open_attempt *new_channel_open_attempt(struct channel *channel)
180{
181 struct open_attempt *oa = tal(channel, struct open_attempt);
182 oa->channel = channel;
183 /* Copy over the config; we'll clobber the reserve */
184 oa->our_config = channel->our_config;
185 oa->role = channel->opener == LOCAL ? TX_INITIATOR : TX_ACCEPTER;
186 oa->our_upfront_shutdown_script = NULL;
187 oa->cmd = NULL;
188 oa->aborted = false;
189 oa->open_msg = NULL;
190
191 return oa;
192}
193
194struct channel *new_unsaved_channel(struct peer *peer,
195 u32 feerate_base,

Callers 5

rbf_channel_hook_cbFunction · 0.85
openchannel2_hook_cbFunction · 0.85
json_openchannel_bumpFunction · 0.85
json_openchannel_initFunction · 0.85
json_queryratesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected