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

Function openchannel2_changed_hook_cb

lightningd/dual_open_control.c:855–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853}
854
855static void
856openchannel2_changed_hook_cb(struct openchannel2_psbt_payload *payload STEALS)
857{
858 struct subd *dualopend = payload->dualopend;
859
860 /* Free payload regardless of what happens next */
861 tal_steal(tmpctx, payload);
862
863 /* If our daemon died, we're done */
864 if (!dualopend)
865 return;
866
867 tal_del_destructor2(dualopend,
868 openchannel2_psbt_remove_dualopend,
869 payload);
870
871 subd_send_msg(dualopend,
872 take(towire_dualopend_psbt_updated(NULL,
873 payload->psbt)));
874}
875
876static bool
877openchannel2_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