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

Function handle_our_shutdown

openingd/dualopend.c:445–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445static void handle_our_shutdown(struct state *state, u8 *msg)
446{
447 u8 *scriptpubkey;
448
449 if (!fromwire_dualopend_send_shutdown(tmpctx, msg, &scriptpubkey))
450 master_badmsg(fromwire_peektype(msg), msg);
451
452 if (!state->shutdown_sent[LOCAL])
453 send_shutdown(state, scriptpubkey);
454
455 billboard_update(state);
456}
457
458static void handle_failure_fatal(struct state *state, u8 *msg)
459{

Callers 1

handle_master_inFunction · 0.85

Calls 4

send_shutdownFunction · 0.85
billboard_updateFunction · 0.70
master_badmsgFunction · 0.50
fromwire_peektypeFunction · 0.50

Tested by

no test coverage detected