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

Function openchannel2_changed_hook_cb

lightningd/dual_open_control.c:945–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

943}
944
945static void
946openchannel2_changed_hook_cb(struct openchannel2_psbt_payload *payload STEALS)
947{
948 struct subd *dualopend = payload->dualopend;
949
950 /* Free payload regardless of what happens next */
951 tal_steal(tmpctx, payload);
952
953 /* If our daemon died, we're done */
954 if (!dualopend)
955 return;
956
957 tal_del_destructor2(dualopend,
958 openchannel2_psbt_remove_dualopend,
959 payload);
960
961 subd_send_msg(dualopend,
962 take(towire_dualopend_psbt_updated(NULL,
963 payload->psbt)));
964}
965
966static bool
967openchannel2_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