MCPcopy Create free account
hub / github.com/ElementsProject/lightning / do_reconnect_commit_sigs

Function do_reconnect_commit_sigs

openingd/dualopend.c:1242–1260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1240}
1241
1242static 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
1262static char *do_commit_signed_received(const tal_t *ctx,
1263 const u8 *msg,

Callers 1

do_reconnect_danceFunction · 0.85

Calls 3

report_channel_hsmdFunction · 0.85
msg_for_remote_commitFunction · 0.85
peer_writeFunction · 0.85

Tested by

no test coverage detected