| 1240 | } |
| 1241 | |
| 1242 | static char *do_reconnect_commit_sigs(const tal_t *ctx, |
| 1243 | const struct state *state, |
| 1244 | const struct tx_state *tx_state) |
| 1245 | { |
| 1246 | char *error; |
| 1247 | u8 *msg; |
| 1248 | |
| 1249 | /* Setup HSMD for this channel */ |
| 1250 | report_channel_hsmd(state, tx_state); |
| 1251 | |
| 1252 | /* Build the commitment_signed message */ |
| 1253 | msg = msg_for_remote_commit(ctx, state, NULL, &error); |
| 1254 | if (!msg) { |
| 1255 | return error; |
| 1256 | } |
| 1257 | |
| 1258 | peer_write(state->pps, take(msg)); |
| 1259 | return NULL; |
| 1260 | } |
| 1261 | |
| 1262 | static char *do_commit_signed_received(const tal_t *ctx, |
| 1263 | const u8 *msg, |
no test coverage detected