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

Function send_shutdown

openingd/dualopend.c:394–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394static void send_shutdown(struct state *state, const u8 *final_scriptpubkey)
395{
396 u8 *msg;
397
398 /* FIXME: send wrong_funding */
399 msg = towire_shutdown(NULL, &state->channel_id,
400 final_scriptpubkey, NULL);
401 peer_write(state->pps, take(msg));
402 state->shutdown_sent[LOCAL] = true;
403}
404
405static void handle_peer_shutdown(struct state *state, u8 *msg)
406{

Callers 2

handle_peer_shutdownFunction · 0.85
handle_our_shutdownFunction · 0.85

Calls 1

peer_writeFunction · 0.85

Tested by

no test coverage detected