| 242 | } |
| 243 | |
| 244 | struct 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 | |
| 259 | struct channel_type *desired_channel_type(const tal_t *ctx, |
| 260 | const struct feature_set *our_features, |
no outgoing calls
no test coverage detected