| 1134 | } |
| 1135 | |
| 1136 | static struct command_result * |
| 1137 | perform_channel_start(struct multifundchannel_command *mfc) |
| 1138 | { |
| 1139 | unsigned int i; |
| 1140 | |
| 1141 | plugin_log(mfc->cmd->plugin, LOG_DBG, |
| 1142 | "mfc %"PRIu64": fundchannel_start parallel " |
| 1143 | "with PSBT %s", |
| 1144 | mfc->id, |
| 1145 | type_to_string(tmpctx, struct wally_psbt, mfc->psbt)); |
| 1146 | |
| 1147 | mfc->pending = tal_count(mfc->destinations); |
| 1148 | |
| 1149 | /* Since v2 is now available, we branch depending |
| 1150 | * on the capability of the peer and our feaures */ |
| 1151 | for (i = 0; i < tal_count(mfc->destinations); ++i) { |
| 1152 | if (is_v2(&mfc->destinations[i])) |
| 1153 | openchannel_init_dest(&mfc->destinations[i]); |
| 1154 | else |
| 1155 | fundchannel_start_dest(&mfc->destinations[i]); |
| 1156 | } |
| 1157 | |
| 1158 | assert(mfc->pending != 0); |
| 1159 | return command_still_pending(mfc->cmd); |
| 1160 | } |
| 1161 | |
| 1162 | |
| 1163 | /*---------------------------------------------------------------------------*/ |
no test coverage detected