| 177 | } |
| 178 | |
| 179 | struct 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 | |
| 194 | struct channel *new_unsaved_channel(struct peer *peer, |
| 195 | u32 feerate_base, |
no outgoing calls
no test coverage detected