| 248 | } |
| 249 | |
| 250 | struct 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 | |
| 265 | struct channel_type *desired_channel_type(const tal_t *ctx, |
| 266 | const struct feature_set *our_features, |
no outgoing calls
no test coverage detected