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

Function openchannel2_changed_hook_cb

lightningd/dual_open_control.c:894–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892}
893
894static void
895openchannel2_changed_hook_cb(struct openchannel2_psbt_payload *payload STEALS)
896{
897 struct subd *dualopend = payload->dualopend;
898
899 /* Free payload regardless of what happens next */
900 tal_steal(tmpctx, payload);
901
902 /* If our daemon died, we're done */
903 if (!dualopend)
904 return;
905
906 tal_del_destructor2(dualopend,
907 openchannel2_psbt_remove_dualopend,
908 payload);
909
910 subd_send_msg(dualopend,
911 take(towire_dualopend_psbt_updated(NULL,
912 payload->psbt)));
913}
914
915static bool
916openchannel2_signed_deserialize(struct openchannel2_psbt_payload *payload,

Callers

nothing calls this directly

Calls 1

subd_send_msgFunction · 0.70

Tested by

no test coverage detected